Browse Source

Add deprecation warning for dropTables

Corey Taylor 4 years ago
parent
commit
e369478359
2 changed files with 5 additions and 1 deletions
  1. 2 1
      psalm-baseline.xml
  2. 3 0
      src/TestSuite/TestCase.php

+ 2 - 1
psalm-baseline.xml

@@ -323,12 +323,13 @@
     </DeprecatedClass>
   </file>
   <file src="src/TestSuite/TestCase.php">
-    <DeprecatedProperty occurrences="5">
+    <DeprecatedProperty occurrences="6">
       <code>$this-&gt;autoFixtures</code>
       <code>$this-&gt;autoFixtures</code>
       <code>$this-&gt;autoFixtures</code>
       <code>$this-&gt;autoFixtures</code>
       <code>$this-&gt;dropTables</code>
+      <code>$this-&gt;dropTables</code>
     </DeprecatedProperty>
   </file>
   <file src="src/TestSuite/TestSuite.php">

+ 3 - 0
src/TestSuite/TestCase.php

@@ -230,6 +230,9 @@ abstract class TestCase extends BaseTestCase
         parent::setUp();
         $this->fixtureManager = FixtureLoader::getInstance();
         if ($this->fixtureManager) {
+            if ($this->dropTables) {
+                deprecationWarning('`$dropTables` is deprecated and will be removed in 5.0.');
+            }
             $this->fixtureManager->setupTest($this);
         }