Beispiel #1
0
 public function testNotNullableButDefault()
 {
     $foo = new \Sandbox\Model\GreedyTimestamp($this->db);
     $foo->save();
 }
Beispiel #2
0
 /**
  * In this case, unset must be used insteat of setting value to null.
  * 
  * @expectedException Gajus\MOA\Exception\InvalidArgumentException
  * @expectedExceptionMessage Datetime must be either decimal UNIX timestamp or MySQL datetime string.
  */
 public function testSetDefaultablePropertyToNull()
 {
     $foo = new \Sandbox\Model\GreedyTimestamp($this->db);
     $foo['timestamp'] = null;
     $foo->save();
 }