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