Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed ProcessBuilder test class

this class has been moved to Symfony
  • Loading branch information...
commit 259747d64e7a24d7dbbf4a1755bb1cca82e8f9e2 1 parent 70f6b88
@kriswallsmith authored
Showing with 0 additions and 56 deletions.
  1. +0 −56 tests/Assetic/Test/Util/ProcessBuilderTest.php
View
56 tests/Assetic/Test/Util/ProcessBuilderTest.php
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of the Assetic package, an OpenSky project.
- *
- * (c) 2010-2012 OpenSky Project Inc
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Assetic\Test\Util;
-
-use Symfony\Component\Process\ProcessBuilder;
-
-class ProcessBuilderTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @test
- */
- public function shouldInheritEnvironmentVars()
- {
- $snapshot = $_ENV;
- $_ENV = $expected = array('foo' => 'bar');
-
- $pb = new ProcessBuilder();
- $pb->add('foo')->inheritEnvironmentVariables();
- $proc = $pb->getProcess();
-
- $this->assertEquals($expected, $proc->getEnv(), '->inheritEnvironmentVariables() copies $_ENV');
-
- $_ENV = $snapshot;
- }
-
- /**
- * @test
- */
- public function shouldNotReplaceExplicitlySetVars()
- {
- $snapshot = $_ENV;
- $_ENV = array('foo' => 'bar');
- $expected = array('foo' => 'baz');
-
- $pb = new ProcessBuilder();
- $pb
- ->setEnv('foo', 'baz')
- ->inheritEnvironmentVariables()
- ->add('foo')
- ;
- $proc = $pb->getProcess();
-
- $this->assertEquals($expected, $proc->getEnv(), '->inheritEnvironmentVariables() copies $_ENV');
-
- $_ENV = $snapshot;
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.