/** * Test fromJson() with create_time property * * @return void */ public function testFromJsonCreateTime() { $accountType = new AccountType(); $accountType->fromJson(json_decode(json_encode(['create_time' => '1452202279000000']))); self::assertSame('2016-01-07T21:31:19+0000', $accountType->createTime->format(\DateTime::ISO8601)); }