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

Namespace

Unish

Classes

Namesort descending Description
drushScriptCase Tests for the 'drush' script itself

File

tests/drushScriptTest.php
View source
  1. <?php
  2. namespace Unish;
  3. /**
  4. * Tests for the 'drush' script itself
  5. */
  6. class drushScriptCase extends CommandUnishTestCase {
  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. $env = array('PHP_OPTIONS' => '-d default_mimetype="text/drush"');
  17. $this->drush('ev', array('print ini_get("default_mimetype");'), $options, NULL, NULL, self::EXIT_SUCCESS, NULL, $env);
  18. $output = $this->getOutput();
  19. $this->assertEquals('text/drush', $output);
  20. }
  21. }