-
-
Save vdubyna/5779843 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Behat\BehatBundle\Command\BehatCommand; | |
class BehatTest extends KernelAwareTest | |
{ | |
/** | |
* @group behat | |
*/ | |
public function testThatBehatScenariosMeetAcceptanceCriteria() | |
{ | |
try { | |
$input = new ArrayInput(array('behat', '-e' => 'test', '--format' => 'progress')); | |
$output = new ConsoleOutput(); | |
$application = new Application($this->kernel); | |
$command = new BehatCommand('behat'); | |
$command->setApplication($application); | |
$result = $command->run($input, $output); | |
$this->assertEquals(0, $result); | |
} catch (\Exception $exception) { | |
$this->fail($exception->getMessage()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment