public function testCanReplaceValues() { $object = Object::replace($this->object, 'foo', 'notfoo', 'notbar'); $matcher = (object) array('notfoo' => 'notbar', 'bis' => 'ter'); $this->assertEquals($matcher, $object); }