Permalink
Browse files

removed ProcessBuilder test class

this class has been moved to Symfony
  • Loading branch information...
1 parent 70f6b88 commit 259747d64e7a24d7dbbf4a1755bb1cca82e8f9e2 @kriswallsmith committed Apr 12, 2012
Showing with 0 additions and 56 deletions.
  1. +0 −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;
- }
-}

0 comments on commit 259747d

Please sign in to comment.