From 17b4f23ef275e94cae0778e90bbdd8729340fccd Mon Sep 17 00:00:00 2001 From: clphillips Date: Mon, 30 Nov 2015 14:38:38 -0800 Subject: [PATCH 1/2] Changed namespace from 'minphp/Db' to 'Minphp/Db' --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index de99d66..44f055c 100644 --- a/composer.json +++ b/composer.json @@ -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"} } } \ No newline at end of file From 22d15804d4c3c64bab9f456f531a0be05c9bef8d Mon Sep 17 00:00:00 2001 From: clphillips Date: Mon, 30 Nov 2015 14:46:53 -0800 Subject: [PATCH 2/2] Changed namespace from 'minphp/Db' to 'Minphp/Db' --- tests/MockablePdo.php | 2 +- tests/Unit/PdoConnectionTest.php | 16 ++++++++-------- tests/Unit/SqliteConnectionTest.php | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/MockablePdo.php b/tests/MockablePdo.php index e37e811..973ec63 100644 --- a/tests/MockablePdo.php +++ b/tests/MockablePdo.php @@ -1,5 +1,5 @@ getMockBuilder('\minphp\Db\Tests\MockablePdo') + $mockConnection = $this->getMockBuilder('\Minphp\Db\Tests\MockablePdo') ->getMock(); $mockConnection->expects($this->once()) ->method('setAttribute') @@ -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() { @@ -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') @@ -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') @@ -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) diff --git a/tests/Unit/SqliteConnectionTest.php b/tests/Unit/SqliteConnectionTest.php index ff57c49..8424787 100644 --- a/tests/Unit/SqliteConnectionTest.php +++ b/tests/Unit/SqliteConnectionTest.php @@ -1,17 +1,17 @@