Changeset 396
- Timestamp:
- 03/18/07 15:12:51 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/rdbms/pdo/stubDatabasePDOConnection.php
r243 r396 39 39 public function __construct(stubDatabaseConnectionData $connectionData) 40 40 { 41 if (extension_loaded('pdo') == false) { 42 throw new stubException('Can not create ' . __CLASS__ . ', requires PHP-extension "pdo".'); 43 } 44 41 45 $this->connectionData = $connectionData; 42 46 } trunk/src/test/php/net/stubbles/rdbms/pdo/stubDatabasePDOConnectionTestCase.php
r174 r396 9 9 stubClassLoader::load('net.stubbles.rdbms.pdo.stubDatabasePDOConnection'); 10 10 Mock::generate('PDO'); 11 class TestPDOStatement extends PDOStatement {} 11 if (extension_loaded('pdo') == true) { 12 class TestPDOStatement extends PDOStatement {} 13 } 12 14 class TeststubDatabasePDOConnection extends stubDatabasePDOConnection 13 15 { … … 50 52 */ 51 53 protected $mockPDO; 54 55 /** 56 * skip the test if xsl not available 57 */ 58 public function skip() 59 { 60 $this->skipUnless(extension_loaded('pdo'), 'stubDatabasePDOConnection requires PHP-extension "pdo".'); 61 } 52 62 53 63 /**
