Skip to content

Commit

Permalink
Allow TestSuite to find classes using autoloader; clean up bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Dec 24, 2018
1 parent c23d787 commit 4e3ed98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
2 changes: 1 addition & 1 deletion src/Framework/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function __construct($theClass = '', $name = '')
$argumentsValid = true;
} elseif (\is_string($theClass) &&
$theClass !== '' &&
\class_exists($theClass, false)) {
\class_exists($theClass, true)) {
$argumentsValid = true;

if ($name == '') {
Expand Down
39 changes: 0 additions & 39 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,3 @@
\ini_set('serialize_precision', 14);

require_once __DIR__ . '/../vendor/autoload.php';

// TODO: Figure out why these are required (the classes should be autoloaded instead)
require_once TEST_FILES_PATH . 'BeforeAndAfterTest.php';

require_once TEST_FILES_PATH . 'BeforeClassAndAfterClassTest.php';

require_once TEST_FILES_PATH . 'TestWithTest.php';

require_once TEST_FILES_PATH . 'BeforeClassWithOnlyDataProviderTest.php';

require_once TEST_FILES_PATH . 'DataProviderSkippedTest.php';

require_once TEST_FILES_PATH . 'DataProviderDependencyTest.php';

require_once TEST_FILES_PATH . 'DataProviderIncompleteTest.php';

require_once TEST_FILES_PATH . 'InheritedTestCase.php';

require_once TEST_FILES_PATH . 'NoTestCaseClass.php';

require_once TEST_FILES_PATH . 'NoTestCases.php';

require_once TEST_FILES_PATH . 'NotPublicTestCase.php';

require_once TEST_FILES_PATH . 'NotSelfDescribingTest.php';

require_once TEST_FILES_PATH . 'NotVoidTestCase.php';

require_once TEST_FILES_PATH . 'OverrideTestCase.php';

require_once TEST_FILES_PATH . 'RequirementsClassBeforeClassHookTest.php';

require_once TEST_FILES_PATH . 'NoArgTestCaseTest.php';

require_once TEST_FILES_PATH . 'Singleton.php';

require_once TEST_FILES_PATH . 'DoNoAssertionTestCase.php';

require_once TEST_FILES_PATH . 'FunctionCallback.php';

0 comments on commit 4e3ed98

Please sign in to comment.