public function testApiMapper() { // given $todo = new Todo(12, "foo", "new"); // when $vo = $todo->marshal(); $entity = Todo::unmarshal($vo); // then $this->assertEquals($todo, $entity, "api should be able to marshal/unmarshal without losing anything"); }