[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/testing/ -> PhabricatorTestCase.php (summary)

If true, put Lisk in process-isolated mode for the duration of the tests so that it will establish only isolated, side-effect-free database connections. Defaults to true. NOTE: You should disable this only in rare circumstances. Unit tests should not rely on external resources like databases, and should not produce side effects.

File Size: 222 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 13 functions

  getPhabricatorTestCaseConfiguration()
  getComputedConfiguration()
  willRunTestCases()
  didRunTestCases()
  willRunTests()
  didRunTests()
  willRunOneTest()
  didRunOneTest()
  newStorageFixture()
  getLink()
  getNextObjectSeed()
  generateNewTestUser()
  assertExecutingUnitTests()

Functions
Functions that are not part of a class:

getPhabricatorTestCaseConfiguration()   X-Ref
No description

getComputedConfiguration()   X-Ref
No description

willRunTestCases(array $test_cases)   X-Ref
No description

didRunTestCases(array $test_cases)   X-Ref
No description

willRunTests()   X-Ref
No description

didRunTests()   X-Ref
No description

willRunOneTest($test)   X-Ref
No description

didRunOneTest($test)   X-Ref
No description

newStorageFixture()   X-Ref
No description

getLink($method)   X-Ref
No description

getNextObjectSeed()   X-Ref
Returns an integer seed to use when building unique identifiers (e.g.,
non-colliding usernames). The seed is unstable and its value will change
between test runs, so your tests must not rely on it.

return: int A unique integer.

generateNewTestUser()   X-Ref
No description

assertExecutingUnitTests()   X-Ref
Throws unless tests are currently executing. This method can be used to
guard code which is specific to unit tests and should not normally be
reachable.

If tests aren't currently being executed, throws an exception.



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1