/** * @expectedException View\FilterNotCallableViewException */ public function testBlocksFiltersException() { //ob_start(); $this->object->blockStart('test', null, 1, 'not_function'); echo 'HELLO'; $this->object->blockEnd(); //ob_end_clean(); }