/** * @expectedException \BadMethodCallException */ public function testCallSetterWithTheWrongNumberOfArgumentsThrowsAnException() { $testCase = new TestsCases\BaseTestCase(); $testCase->setAccessibleProperty("a", "b"); }