Skip to content

Commit

Permalink
Merge branch '4.3' into 4.4
Browse files Browse the repository at this point in the history
* 4.3:
  Remove use of ForwardCompatTrait
  Remove deprecated methods assertArraySubset
  • Loading branch information
nicolas-grekas committed Aug 3, 2019
2 parents ea1fa76 + c6e7077 commit 2faaf08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions Tests/ExecutableFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@
namespace Symfony\Component\Process\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
use Symfony\Component\Process\ExecutableFinder;

/**
* @author Chris Smith <chris@cs278.org>
*/
class ExecutableFinderTest extends TestCase
{
use ForwardCompatTestTrait;

private $path;

private function doTearDown()
protected function tearDown()
{
if ($this->path) {
// Restore path if it was changed.
Expand Down
3 changes: 0 additions & 3 deletions Tests/ProcessFailedExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
namespace Symfony\Component\Process\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
use Symfony\Component\Process\Exception\ProcessFailedException;

/**
* @author Sebastian Marek <proofek@gmail.com>
*/
class ProcessFailedExceptionTest extends TestCase
{
use ForwardCompatTestTrait;

/**
* tests ProcessFailedException throws exception if the process was successful.
*/
Expand Down
7 changes: 2 additions & 5 deletions Tests/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace Symfony\Component\Process\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
use Symfony\Component\Process\Exception\LogicException;
use Symfony\Component\Process\Exception\ProcessTimedOutException;
use Symfony\Component\Process\Exception\RuntimeException;
Expand All @@ -26,13 +25,11 @@
*/
class ProcessTest extends TestCase
{
use ForwardCompatTestTrait;

private static $phpBin;
private static $process;
private static $sigchild;

private static function doSetUpBeforeClass()
public static function setUpBeforeClass()
{
$phpBin = new PhpExecutableFinder();
self::$phpBin = getenv('SYMFONY_PROCESS_PHP_TEST_BINARY') ?: ('phpdbg' === \PHP_SAPI ? 'php' : $phpBin->find());
Expand All @@ -42,7 +39,7 @@ private static function doSetUpBeforeClass()
self::$sigchild = false !== strpos(ob_get_clean(), '--enable-sigchild');
}

private function doTearDown()
protected function tearDown()
{
if (self::$process) {
self::$process->stop(0);
Expand Down

0 comments on commit 2faaf08

Please sign in to comment.