Skip to content

Commit

Permalink
Merge pull request #3 from phillipsdata/rename-namespace
Browse files Browse the repository at this point in the history
Rename namespace
  • Loading branch information
clphillips committed Nov 30, 2015
2 parents b4c113d + 22d1580 commit e90a7af
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"squizlabs/php_codesniffer": "~2.2"
},
"autoload": {
"psr-4": {"minphp\\Db\\": "src"}
"psr-4": {"Minphp\\Db\\": "src"}
},
"autoload-dev": {
"psr-4": {"minphp\\Db\\Tests\\": "tests"}
"psr-4": {"Minphp\\Db\\Tests\\": "tests"}
}
}
2 changes: 1 addition & 1 deletion tests/MockablePdo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace minphp\Db\Tests;
namespace Minphp\Db\Tests;

use PDO;

Expand Down
16 changes: 8 additions & 8 deletions tests/Unit/PdoConnectionTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace minphp\Db\Tests\Unit;
namespace Minphp\Db\Tests\Unit;

use minphp\Db\PdoConnection;
use Minphp\Db\PdoConnection;
use PHPUnit_Framework_TestCase;

/**
* @coversDefaultClass minphp\Db\PdoConnection
* @coversDefaultClass Minphp\Db\PdoConnection
*/
class PdoConnectionTest extends PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -50,7 +50,7 @@ public function testSetAttribute()
$attribute = 'attribute';
$value = 'value';

$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
->getMock();
$mockConnection->expects($this->once())
->method('setAttribute')
Expand All @@ -66,7 +66,7 @@ public function testSetAttribute()
* @covers ::getConnection
* @covers ::setConnection
* @covers ::connect
* @uses \minphp\Db\PdoConnection::prepare
* @uses \Minphp\Db\PdoConnection::prepare
*/
public function testQuery()
{
Expand All @@ -79,7 +79,7 @@ public function testQuery()
->method('execute')
->with($this->equalTo($params));

$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
->getMock();
$mockConnection->expects($this->once())
->method('prepare')
Expand Down Expand Up @@ -107,7 +107,7 @@ public function testPrepare()
->method('setFetchMode')
->with($this->anything());

$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
->getMock();
$mockConnection->expects($this->once())
->method('prepare')
Expand Down Expand Up @@ -165,7 +165,7 @@ public function testCommit()
*/
private function mockConnection($method, $return)
{
$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
->getMock();
$mockConnection->expects($this->once())
->method($method)
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/SqliteConnectionTest.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace minphp\Db\Tests\Unit;
namespace Minphp\Db\Tests\Unit;

use minphp\Db\SqliteConnection;
use Minphp\Db\SqliteConnection;
use PHPUnit_Framework_TestCase;

/**
* @coversDefaultClass minphp\Db\SqliteConnection
* @coversDefaultClass \Minphp\Db\SqliteConnection
*/
class SqliteConnectionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers ::makeDsn
* @uses \minphp\Db\PdoConnection
* @uses \Minphp\Db\PdoConnection
*/
public function testMakeDsn()
{
Expand Down

0 comments on commit e90a7af

Please sign in to comment.