/** * @covers ::__call */ function testCallForError() { $this->setExpectedException('PHPUnit_Framework_Exception'); $this->_sut->foobar(); }