Beispiel #1
0
 /**
  * @test
  */
 public function deleteWithInvalidResponse()
 {
     $this->_writeStream->setResponse("3215");
     $result = $this->_driver->delete(1, array('=' => 'value'), array(1, 10));
     $this->assertEquals("1\t=\t1\tvalue\t1\t10\tD", $this->_writeStream->getLastRequest());
     $this->assertInternalType('bool', $result);
     $this->assertFalse($result);
 }
Beispiel #2
0
 /**
  * @param $query
  * @param array $limit
  * @param array $options
  * @return bool
  */
 public function delete($query, $limit = array(1, 0), $options = array())
 {
     return $this->_driverInstance->delete($this->getWriteIndex(), $query, $limit, $options);
 }