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