save() public method

Save properties
public save ( ) : boolean
return boolean
Esempio n. 1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSaveWithWrongValues()
 {
     $configuration = Registry::get('Application')->getConfig();
     if ($configuration['db']['driver'] == 'pdo_mysql') {
         $this->markTestSkipped('Mysql does not thrown exception.');
     }
     $this->setExpectedException('Gc\\Exception');
     $this->property->setIdentifier(null);
     $this->object->setProperties(array($this->property->getData()));
     $this->assertFalse($this->object->save());
 }