Solar_Test_Suite::_fetchTestCaseConfig()

protected string Solar_Test_Suite::_fetchTestCaseConfig ( string $class )

Finds the config file for a test case.

Parameters

  • (string) $class: The test case class to find configs for.

Returns

  • (string) The config file location for the test case.

Description

Finds the config file for a test case.

The order of precedence is:

  1. Use the value of --test-config when not empty.

  2. Look for $system/config/test/Vendor.config.php and use that if it exists.

  3. Look for $system/source/vendor/tests/config.php and use that if it exists.

  4. No config for the test case.



Local