Permalink
Browse files

ZendTest\Db

* updated checkEnvironment() test to not be skipped for pgsql
  • Loading branch information...
1 parent ee0d947 commit 508ed58b866a7394976e1318be287d092a4ce022 @ralphschindler ralphschindler committed Oct 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/ZendTest/Db/Adapter/Driver/Pgsql/PgsqlTest.php
@@ -25,11 +25,11 @@ protected function setUp()
*/
public function testCheckEnvironment()
{
- if (extension_loaded('pgsql')) {
- $this->markTestSkipped('PostgreSQL extension (pgsql) is already loaded');
+ if (!extension_loaded('pgsql')) {
+ $this->setExpectedException('Zend\Db\Adapter\Exception\RuntimeException');
}
- $this->setExpectedException('Zend\Db\Adapter\Exception\RuntimeException');
$this->pgsql->checkEnvironment();
+ $this->assertTrue(true, 'No exception was thrown');
}
/**

0 comments on commit 508ed58

Please sign in to comment.