public static function Drush_TestCase::is_windows

6.x drush_testcase.inc public static Drush_TestCase::is_windows()
4.x drush_testcase.inc public static Drush_TestCase::is_windows()
5.x drush_testcase.inc public static Drush_TestCase::is_windows()
14 calls to Drush_TestCase::is_windows()
completeCase::testComplete in tests/completeTest.php
coreCase::testStandaloneScript in tests/coreTest.php
Test standalone php-script scripts. Assure that script args and options work.
drushScriptCase::testPhpOptionsTest in tests/drushScriptTest.php
Test `PHP_OPTIONS=... drush`
Drush_TestCase::bit_bucket in tests/drush_testcase.inc
Borrowed from Drush. Checks operating system and returns supported bit bucket folder.
Drush_TestCase::escapeshellarg in tests/drush_testcase.inc

... See full list

File

tests/drush_testcase.inc, line 91
Initialize a sandboxed environment. Starts with call unish_init() at bottom.

Class

Drush_TestCase

Code

public static function is_windows() {
  return (strtoupper(substr(PHP_OS, 0, 3)) == "WIN");
}