LTSProcessBuilderFactoryTest.php 715 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Alchemy\Tests\BinaryDriver;
  3. use Alchemy\BinaryDriver\ProcessBuilderFactory;
  4. class LTSProcessBuilderFactoryTest extends AbstractProcessBuilderFactoryTest
  5. {
  6. public function setUp()
  7. {
  8. if (!class_exists('Symfony\Component\Process\ProcessBuilder')) {
  9. $this->markTestSkipped('ProcessBuilder is not available.');
  10. return;
  11. }
  12. parent::setUp();
  13. }
  14. protected function getProcessBuilderFactory($binary)
  15. {
  16. $factory = new ProcessBuilderFactory($binary);
  17. $factory->setBuilder(new LTSProcessBuilder());
  18. ProcessBuilderFactory::$emulateSfLTS = false;
  19. $factory->useBinary($binary);
  20. return $factory;
  21. }
  22. }