Browse Source

Merge pull request #4235 from jadb/3.0-fixture-manager-type-hint

Remove TestCase type hint in FixtureManager.
Mark Story 11 years ago
parent
commit
aa428ee22f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/TestSuite/Fixture/FixtureManager.php

+ 2 - 2
src/TestSuite/Fixture/FixtureManager.php

@@ -222,7 +222,7 @@ class FixtureManager {
  * @return void
  * @throws \Cake\Error\Exception When fixture records cannot be inserted.
  */
-	public function load(TestCase $test) {
+	public function load($test) {
 		if (empty($test->fixtures)) {
 			return;
 		}
@@ -266,7 +266,7 @@ class FixtureManager {
  * @param \Cake\TestSuite\TestCase $test the test to inspect for fixture unloading
  * @return void
  */
-	public function unload(TestCase $test) {
+	public function unload($test) {
 		$fixtures = !empty($test->fixtures) ? $test->fixtures : [];
 		foreach (array_reverse($fixtures) as $f) {
 			if (isset($this->_loaded[$f])) {