drushScriptTest.php

  1. 8.0.x tests/drushScriptTest.php
  2. 6.x tests/drushScriptTest.php
  3. 7.x tests/drushScriptTest.php
  4. 5.x tests/drushScriptTest.php
  5. master tests/drushScriptTest.php

Classes

Namesort descending Description
drushScriptCase

File

tests/drushScriptTest.php
View source
  1. <?php
  2. /*
  3. * @file
  4. * Tests for the 'drush' script itself
  5. */
  6. class drushScriptCase extends Drush_CommandTestCase {
  7. /*
  8. * Test `PHP_OPTIONS=... drush`
  9. */
  10. public function testPhpOptionsTest() {
  11. // todo: could probably run this test on mingw
  12. if ($this->is_windows()) {
  13. $this->markTestSkipped('environment variable tests not currently functional on Windows.');
  14. }
  15. $options = array(
  16. );
  17. $env = array(
  18. 'PHP_OPTIONS' => '-d default_mimetype="text/drush"',
  19. );
  20. $this->drush('ev', array('print ini_get("default_mimetype");'), $options, NULL, NULL, self::EXIT_SUCCESS, NULL, $env);
  21. $output = $this->getOutput();
  22. $this->assertEquals('text/drush', $output);
  23. }
  24. }