Exemple #1
0
 public function testSetPluginLoaderInvalidType()
 {
     $input = new Zend_Filter_Input(null, null);
     $loader = new Zend_Loader_PluginLoader();
     try {
         $input->setPluginLoader($loader, 'foo');
         $this->fail('Expected to catch Zend_Filter_Exception');
     } catch (Zend_Exception $e) {
         $this->assertType('Zend_Filter_Exception', $e, 'Expected object of type Zend_Filter_Exception, got ' . get_class($e));
         $this->assertEquals('Invalid type "foo" provided to setPluginLoader()', $e->getMessage());
     }
 }