assertSame('2016-12-24 14:42:24', $dbo->getDateTime()->__toString()); } public function testNull() { $dbo = LuDateTimeDbo::jsonDeserialize(null); $this->assertSame(null, $dbo->getDateTime()); } public function testInvalid() { $this->expectException(LuDboDeserializeException::class); LuDateTimeDbo::jsonDeserialize('my date'); } }