示例#1
0
 public function testValidationForNull()
 {
     $entity = new Dummy($this->adapter, 1);
     $entity->setFirstName(null);
     $this->assertTrue(null === $entity->getFirstName());
 }
示例#2
0
 /**
  * @expectedException \Rio\Exception
  * @expectedExceptionMessage Failed to execute statement: INSERT INTO `dummy` (name, first_name, available, misfit) VALUES (?, ?, ?, ?)
  */
 public function testSave()
 {
     $this->entity->setFirstName('lilith')->save();
 }