Skip to content

Commit

Permalink
use hasConnection() method
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jan 24, 2015
1 parent b9ba316 commit 2eb9a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PSX/Dependency/DefaultContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function testGet()
$this->assertInstanceOf('PSX\Config', $container->get('config'));
$this->assertInstanceOf('PSX\Http', $container->get('http'));
$this->assertInstanceOf('PSX\Session', $container->get('session'));
if(defined('PSX_CONNECTION') && PSX_CONNECTION === true)

if(hasConnection())
{
$this->assertInstanceOf('Doctrine\DBAL\Connection', $container->get('connection'));
$this->assertInstanceOf('PSX\Sql\TableManager', $container->get('table_manager'));
Expand Down

0 comments on commit 2eb9a39

Please sign in to comment.