Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing require to require_once to make tests less order dependent.

  • Loading branch information...
commit c4ef4290041dfec61aa26653b5c04c76aff91893 1 parent 34fed29
@markstory markstory authored
View
5 cake/tests/cases/console/libs/tasks/extract.test.php
@@ -33,9 +33,8 @@
ob_end_clean();
}
-if (!class_exists('ExtractTask')) {
- require CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'extract.php';
-}
+require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'extract.php';
+
Mock::generatePartial(
'ShellDispatcher', 'TestExtractTaskMockShellDispatcher',
View
4 cake/tests/cases/console/libs/tasks/project.test.php
@@ -32,9 +32,7 @@
ob_end_clean();
}
-if (!class_exists('ProjectTask')) {
- require CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'project.php';
-}
+require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'project.php';
Mock::generatePartial(
'ShellDispatcher', 'TestProjectTaskMockShellDispatcher',
View
7 cake/tests/cases/console/libs/tasks/test.test.php
@@ -34,10 +34,9 @@
ob_end_clean();
}
-if (!class_exists('TestTask')) {
- require CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'test.php';
- require CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'template.php';
-}
+require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'test.php';
+require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'template.php';
+
Mock::generatePartial(
'ShellDispatcher', 'TestTestTaskMockShellDispatcher',
Please sign in to comment.
Something went wrong with that request. Please try again.