public function testAddConfigFromFile_RegistersResources() { $this->testedFactory->addConfigFromFile(realpath(__DIR__ . "/ExamplePluginConfig.php")); $pluginClass = $this->getFakePluginClassName('ExamplePluginWithSingleRequiredArg'); $plugin = $this->testedFactory->buildPlugin($pluginClass); // The Example config file defines an array as the resource. $this->assertEquals(array("bar" => "Hello"), $plugin->RequiredArgument); }
public function testAddConfigFromFile_RegistersResources() { $this->testedFactory->addConfigFromFile(realpath(__DIR__ . "/ExamplePluginConfig.php")); $namespace = '\\PHPCI\\Plugin\\Tests\\Util\\'; $pluginName = $namespace . 'ExamplePluginWithSingleRequiredArg'; $plugin = $this->testedFactory->buildPlugin($pluginName); // The Example config file defines an array as the resource. $this->assertEquals(array("bar" => "Hello"), $plugin->RequiredArgument); }