/** * @expectedException PHPUnit_Framework_Error */ public function testErr() { $t = new CallTraitStub(['foo' => 'bar']); $t->bar(); }