Browse Source

Fix issues found by PHPStan in tests/

mscherer 4 years ago
parent
commit
0fd1e45a02

+ 1 - 0
tests/TestCase/Console/CommandRunnerTest.php

@@ -30,6 +30,7 @@ use Cake\TestSuite\Stub\ConsoleOutput;
 use Cake\TestSuite\TestCase;
 use InvalidArgumentException;
 use RuntimeException;
+use stdClass;
 use TestApp\Command\AbortCommand;
 use TestApp\Command\DemoCommand;
 use TestApp\Command\DependencyCommand;

+ 0 - 2
tests/TestCase/Error/DebuggerTest.php

@@ -835,7 +835,6 @@ EXPECTED;
 <div class="cake-dbg"><span class="cake-dbg-string">&#039;&lt;div&gt;this-is-a-test&lt;/div&gt;&#039;</span></div>
 </div>
 EXPECTED;
-        $expected = sprintf($expected, Debugger::trimPath(__FILE__), __LINE__ - 8);
         $this->assertSame($expected, $result);
 
         ob_start();
@@ -861,7 +860,6 @@ EXPECTED;
 ###########################
 
 EXPECTED;
-        $expected = sprintf($expected, Debugger::trimPath(__FILE__), __LINE__ - 8);
         $this->assertSame($expected, $result);
     }