public function testObjectPropertyKey() { $key = $this->prophesize(Key::class); $key->keyObject()->willReturn('foo'); $res = $this->mapper->valueObject($key->reveal()); $this->assertEquals($res['keyValue'], 'foo'); }