/** * Tests that calling a helper whose file exists but class is not found within * throws the expected exception */ public function testLoadHelperNonexistantClass() { $this->setExpectedException('Zend\\Loader\\PluginLoaderException', 'not found'); $view = new View(); $view->setHelperPath(array(__DIR__ . '/_stubs/HelperDir1')); $view->stubEmpty(); }