delete() public méthode

Delete icon
public delete ( ) : boolean
Résultat boolean
Exemple #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testDeleteWithWrongValues()
 {
     $configuration = Registry::get('Application')->getConfig();
     if ($configuration['db']['driver'] == 'pdo_mysql') {
         $this->markTestSkipped('Mysql does not thrown exception.');
     }
     $this->setExpectedException('Gc\\Exception');
     $this->object->setId('undefined');
     $this->assertFalse($this->object->delete());
 }