public function testValidationForNull() { $entity = new Dummy($this->adapter, 1); $entity->setFirstName(null); $this->assertTrue(null === $entity->getFirstName()); }
/** * @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(); }