function testInvalidCallback() { $this->setExpectedException('Exception', 'Invalid callback specified.'); $this->dispatcher->execute(array('NonExistentClass', 'nonExistentMethod')); }