Skip to content

Commit

Permalink
Change deprecated ProcessBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
smartynovych committed Dec 29, 2017
1 parent 9797272 commit 62a807f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/PhingCompareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Symfony\Component\Process\ProcessBuilder;
use Symfony\Component\Process\Process;

class PhingCompareTest extends \PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -35,13 +35,8 @@ public static function tearDownAfterClass()
public function testRunningPhing()
{
// Run phing compile
$builder = new ProcessBuilder();
$builder->setPrefix(__DIR__ . '/../vendor/bin/phing');
$builder->setWorkingDirectory(__DIR__ . '/../');
$builder->setArguments(array('compile'));

$process = $builder->getProcess();

$process = new Process(__DIR__ . '/../vendor/bin/phing compile');
$process->setWorkingDirectory(__DIR__ . '/../');
$process->run();

// Print this for keepsakes
Expand Down

0 comments on commit 62a807f

Please sign in to comment.