public function testVariableIsNullable() { $object = new DomainObject(); $object->weight = 88.5; // var type = double $object->weight = ''; // var type = string $object->weight = null; $this->assertSame($object->weight, null); }