public function testExecute()
{
$application = $this->getApplication();
$config = $application->getConfig();
$testDir = $this->normalizePathSeparators(__DIR__) . '/_scripts';
$config['script']['folders'][] = $testDir;
$application->setConfig($config);
$application->add(new RunCommand());
$command = $this->getApplication()->find('script:repo:run');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), 'script' => 'hello-world'));
// Runs sys:info -> Check for any output
$this->assertContains('Vendors (core)', $commandTester->getDisplay());
$this->assertContains($testDir . '/hello-world.magerun', $this->normalizePathSeparators($commandTester->getDisplay()));
}