/** * @covers Model::jsonSerialize */ public function testJsonSerialize() { $now = time(); $this->instance->settrue_false(false)->setCreated($now)->setUpdated($now); $this->assertSame(array('id' => null, 'true_false' => false, 'created' => date('c', $now), 'updated' => date('c', $now)), $this->instance->jsonSerialize()); }