public function testGetConnectionsWithSameName() { Connection::init($this->getAuthData(), self::CONNECTION_NAME, $this->getDBType()); $a = Connection::get(self::CONNECTION_NAME, $this->getDBType()); $b = Connection::get(self::CONNECTION_NAME, $this->getDBType()); $this->assertTrue($a instanceof PDO); $this->assertTrue($b instanceof PDO); $this->assertTrue($a === $b); }
public static function tearDownAfterClass() { Connection::close(self::CONNECTION_NAME, Connection::MYSQL); }