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()
15 calls to Drush_TestCase::is_windows()
archiveDumpCase::testArchiveDump in tests/archiveDumpTest.php
Test if tarball generated by archive-dump looks right.
completeCase::testComplete in tests/completeTest.php
coreCase::testStandaloneScript in tests/coreTest.php
drushScriptCase::testPhpOptionsTest in tests/drushScriptTest.php
Drush_TestCase::bit_bucket in tests/drush_testcase.inc
Borrowed from Drush. Checks operating system and returns supported bit bucket folder.

... See full list

File

tests/drush_testcase.inc, line 90

Class

Drush_TestCase

Code

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