Пример #1
0
 /**
  * @covers Zend\Db\Adapter\Driver\Oci8\Oci8::registerStatementPrototype
  */
 public function testRegisterStatementPrototype()
 {
     $this->oci8 = new Oci8(array());
     $mockStatement = $this->getMockForAbstractClass('Zend\\Db\\Adapter\\Driver\\Oci8\\Statement', array(), '', true, true, true, array('setDriver'));
     $mockStatement->expects($this->once())->method('setDriver')->with($this->equalTo($this->oci8));
     $this->assertSame($this->oci8, $this->oci8->registerStatementPrototype($mockStatement));
 }