You are here

public function AbstractProcessTest::testMethodsThatNeedARunningProcess in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testMethodsThatNeedARunningProcess()

@dataProvider provideMethodsThatNeedARunningProcess

File

vendor/symfony/process/Tests/AbstractProcessTest.php, line 952

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testMethodsThatNeedARunningProcess($method) {
  $process = $this
    ->getProcess(self::$phpBin . ' -v');
  $this
    ->setExpectedException('Symfony\\Component\\Process\\Exception\\LogicException', sprintf('Process must be started before calling %s.', $method));
  $process
    ->{$method}();
}