/** * @group zf3469 */ public function testConnectReturnsConnectionWhenResourceSet() { $resource = sqlsrv_connect($this->variables['hostname'], array('UID' => $this->variables['username'], 'PWD' => $this->variables['password'])); $connection = new Connection(array()); $connection->setResource($resource); $this->assertSame($connection, $connection->connect()); $connection->disconnect(); unset($connection); unset($resource); }