Skip to content

Commit e90a7af

Browse files
committed
Merge pull request #3 from phillipsdata/rename-namespace
Rename namespace
2 parents b4c113d + 22d1580 commit e90a7af

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"squizlabs/php_codesniffer": "~2.2"
1919
},
2020
"autoload": {
21-
"psr-4": {"minphp\\Db\\": "src"}
21+
"psr-4": {"Minphp\\Db\\": "src"}
2222
},
2323
"autoload-dev": {
24-
"psr-4": {"minphp\\Db\\Tests\\": "tests"}
24+
"psr-4": {"Minphp\\Db\\Tests\\": "tests"}
2525
}
2626
}

tests/MockablePdo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace minphp\Db\Tests;
2+
namespace Minphp\Db\Tests;
33

44
use PDO;
55

tests/Unit/PdoConnectionTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
2-
namespace minphp\Db\Tests\Unit;
2+
namespace Minphp\Db\Tests\Unit;
33

4-
use minphp\Db\PdoConnection;
4+
use Minphp\Db\PdoConnection;
55
use PHPUnit_Framework_TestCase;
66

77
/**
8-
* @coversDefaultClass minphp\Db\PdoConnection
8+
* @coversDefaultClass Minphp\Db\PdoConnection
99
*/
1010
class PdoConnectionTest extends PHPUnit_Framework_TestCase
1111
{
@@ -50,7 +50,7 @@ public function testSetAttribute()
5050
$attribute = 'attribute';
5151
$value = 'value';
5252

53-
$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
53+
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
5454
->getMock();
5555
$mockConnection->expects($this->once())
5656
->method('setAttribute')
@@ -66,7 +66,7 @@ public function testSetAttribute()
6666
* @covers ::getConnection
6767
* @covers ::setConnection
6868
* @covers ::connect
69-
* @uses \minphp\Db\PdoConnection::prepare
69+
* @uses \Minphp\Db\PdoConnection::prepare
7070
*/
7171
public function testQuery()
7272
{
@@ -79,7 +79,7 @@ public function testQuery()
7979
->method('execute')
8080
->with($this->equalTo($params));
8181

82-
$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
82+
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
8383
->getMock();
8484
$mockConnection->expects($this->once())
8585
->method('prepare')
@@ -107,7 +107,7 @@ public function testPrepare()
107107
->method('setFetchMode')
108108
->with($this->anything());
109109

110-
$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
110+
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
111111
->getMock();
112112
$mockConnection->expects($this->once())
113113
->method('prepare')
@@ -165,7 +165,7 @@ public function testCommit()
165165
*/
166166
private function mockConnection($method, $return)
167167
{
168-
$mockConnection = $this->getMockBuilder('\minphp\Db\Tests\MockablePdo')
168+
$mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo')
169169
->getMock();
170170
$mockConnection->expects($this->once())
171171
->method($method)

tests/Unit/SqliteConnectionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
2-
namespace minphp\Db\Tests\Unit;
2+
namespace Minphp\Db\Tests\Unit;
33

4-
use minphp\Db\SqliteConnection;
4+
use Minphp\Db\SqliteConnection;
55
use PHPUnit_Framework_TestCase;
66

77
/**
8-
* @coversDefaultClass minphp\Db\SqliteConnection
8+
* @coversDefaultClass \Minphp\Db\SqliteConnection
99
*/
1010
class SqliteConnectionTest extends PHPUnit_Framework_TestCase
1111
{
1212
/**
1313
* @covers ::makeDsn
14-
* @uses \minphp\Db\PdoConnection
14+
* @uses \Minphp\Db\PdoConnection
1515
*/
1616
public function testMakeDsn()
1717
{

0 commit comments

Comments
 (0)