public function testRewireMethod_private_defaultArgs() { $recorder = new Recorder(); $foobar = new FooBar(); $this->rewireMethod("FooBar", "baz", $recorder, "record"); $foobar->callBaz(11); $foobar->callBaz(22); $this->assertEquals(array(array(11, 42), array(22, 42)), $recorder->recorded); }