PHPUnit 3.6.10 throws an exception here:

InvalidArgumentException: You must not expect the generic exception class.

The correct syntax will be

```php
$this->setExpectedException('Phalcon\Mvc\View\Exception');
```