Skip to content

Commit

Permalink
Merge pull request #2 from phillipsdata/rename-namespace
Browse files Browse the repository at this point in the history
Changed namespace from 'minphp/Db' to 'Minphp/Db'
  • Loading branch information
clphillips committed Nov 30, 2015
2 parents 3100f1e + fc9d302 commit b4c113d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ composer require minphp/db:dev-master
## Basic Usage

```php
use minphp\Db\PdoConnection;
use Minphp\Db\PdoConnection;

$dbInfo = array(
'driver' => 'mysql',
Expand All @@ -36,7 +36,7 @@ $connection->query('SELECT * FROM table WHERE id=?', 1);
By default, PdoConnection will only connect to the database when a connection is required. To explicitly connect to the database use `connect()`:

```php
use minphp\Db\PdoConnection;
use Minphp\Db\PdoConnection;

$dbInfo = array(
'driver' => 'mysql',
Expand Down
2 changes: 1 addition & 1 deletion src/PdoConnection.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace minphp\Db;
namespace Minphp\Db;

use PDO;
use PDOStatement;
Expand Down
2 changes: 1 addition & 1 deletion src/SqliteConnection.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace minphp\Db;
namespace Minphp\Db;

class SqliteConnection extends PdoConnection
{
Expand Down
12 changes: 6 additions & 6 deletions tests/Integration/PdoConnectionTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
namespace minphp\Db\Tests\Integration;
namespace Minphp\Db\Tests\Integration;

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

/**
* @coversDefaultClass minphp\Db\PdoConnection
* @coversDefaultClass Minphp\Db\PdoConnection
*/
class PdoConnectionTest extends PHPUnit_Framework_TestCase
{
Expand All @@ -22,7 +22,7 @@ private function getDbInfo()
* @covers ::__construct
* @covers ::setConnection
* @covers ::getConnection
* @covers \minphp\Db\SqliteConnection::makeDsn
* @covers \Minphp\Db\SqliteConnection::makeDsn
* @covers ::makeConnection
* @covers ::query
* @covers ::prepare
Expand All @@ -39,7 +39,7 @@ public function testConnect()
* @covers ::getConnection
* @covers ::setConnection
* @covers ::connect
* @covers \minphp\Db\SqliteConnection::makeDsn
* @covers \Minphp\Db\SqliteConnection::makeDsn
* @covers ::makeConnection
*/
public function testReuseConnection()
Expand Down

0 comments on commit b4c113d

Please sign in to comment.