10 use Symfony\Component\Console\Tester\CommandTester;
22 function passthru($command, &$return_var =
null)
49 $commandTester =
new CommandTester($this->command);
51 $this->assertContains(
'Invalid type: "bad"', $commandTester->getDisplay());
60 $commandTester =
new CommandTester($this->command);
61 $commandTester->execute(
67 $this->assertContains(
68 'phpunit --list-suites',
69 $commandTester->getDisplay(),
70 'Parameters should be passed to PHPUnit' 72 $this->assertContains(
74 $commandTester->getDisplay(),
75 'PHPUnit runs should have passed' 85 $commandTester =
new CommandTester($this->command);
86 $commandTester->execute(
92 $this->assertContains(
93 'phpunit --list-suites',
94 $commandTester->getDisplay(),
95 'Parameters should be passed to PHPUnit' 97 $this->assertContains(
99 $commandTester->getDisplay(),
100 'PHPUnit runs should have passed'
testPassArgumentsToPHPUnitNegative()
passthru($command, &$return_var=null)
testPassArgumentsToPHPUnit()
const INPUT_OPT_COMMAND_ARGUMENTS_SHORT
$devTestsRunCommandTestPassthruReturnVar