예제 #1
0
 function testBadArgParameter()
 {
     $mock = new MockDummy($this);
     $mock->expectArguments("aMethod", "foo");
     $this->assertErrorPattern('/\\$args.*not an array/i');
     $mock->aMethod();
     $mock->tally();
 }