public function testValidatePlugin() { $plugin = new PluginManager(); $transport = $this->getMock('Zend\\Mail\\Transport\\File'); $result = $plugin->validatePlugin($transport); $this->assertNull($result); $this->setExpectedException('Zend\\Mail\\Exception\\RuntimeException'); $plugin->validatePlugin(new \stdClass()); }