/** * @param $values * @return bool */ public function insert($values) { return $this->_driverInstance->insert($this->getWriteIndex(), $values); }
/** * @test * @expectedException Ext_HandlerSocket_Driver_Exception */ public function streamWriteErrorWriteRequest() { $this->_driver->setWriteStream(new Ext_HandlerSocket_Driver_Mocks_StreamWriteErrorMock()); $result = $this->_driver->insert(1, array(1, 2, 3, 4)); }