/**
  * Throws a BadMethodCallException because no native is allowed for this type.
  * @expectedException \BadMethodCallException
  * @expectedExceptionMessage Cannot create a Datetime object via this method.
  */
 public function testThrowsABadMethodCallExceptionBecauseNoNativeIsAllowedForThisType()
 {
     FieldType\Datetime::fromNative();
 }
 /**
  * Returns the string "datetime".
  */
 public function testReturnsTheStringDatetime()
 {
     $instance = new FieldType\Datetime();
     $result = $instance->toNative();
     static::assertEquals('datetime', $result);
 }