function UnishTestCase::bit_bucket

8.0.x UnishTestCase.php UnishTestCase::bit_bucket()
7.x UnishTestCase.php UnishTestCase::bit_bucket()
master UnishTestCase.php UnishTestCase::bit_bucket()

Borrowed from Drush. Checks operating system and returns supported bit bucket folder.

4 calls to UnishTestCase::bit_bucket()
backendCase::testOrigin in tests/backendTest.php
Covers the following origin responsibilities.
backendCase::testTarget in tests/backendTest.php
Covers the following target responsibilities.
cacheCommandCase::testCacheSet in tests/cacheCommandTest.php
CommandUnishTestCase::drush in tests/Unish/CommandUnishTestCase.php
Invoke drush in via execute().

File

tests/Unish/UnishTestCase.php, line 142

Namespace

Unish

Class

UnishTestCase

Code

function bit_bucket() {
  if (!$this->is_windows()) {
    return '/dev/null';
  }
  else {
    return 'nul';
  }
}