Browse Source

Merge pull request #12409 from ndm2/fix/console-integration-test-case-annotations

Fix console integration test case annotations.
Mark Sch 7 years ago
parent
commit
0a7f75e683
2 changed files with 2 additions and 3 deletions
  1. 0 1
      phpstan.neon
  2. 2 2
      src/TestSuite/ConsoleIntegrationTestCase.php

+ 0 - 1
phpstan.neon

@@ -28,7 +28,6 @@ parameters:
         - '#Variable \$_SESSION in isset\(\) always exists and is not nullable#'
         - '#Call to an undefined method Traversable::getInnerIterator\(\)#'
         - '#PHPDoc tag @throws with type PHPUnit\\Exception is not subtype of Throwable#'
-        - '#Call to an undefined method Cake\\Console\\ConsoleOutput\|PHPUnit_Framework_MockObject_MockObject::messages\(\)#'
         - '#Binary operation "\+=" between \(array\&hasOffset\(.*\)\) and array results in an error#'
     earlyTerminatingMethodCalls:
         Cake\Shell\Shell:

+ 2 - 2
src/TestSuite/ConsoleIntegrationTestCase.php

@@ -43,14 +43,14 @@ abstract class ConsoleIntegrationTestCase extends TestCase
     /**
      * Console output stub
      *
-     * @var \Cake\Console\ConsoleOutput|\PHPUnit_Framework_MockObject_MockObject|null
+     * @var \Cake\TestSuite\Stub\ConsoleOutput|\PHPUnit_Framework_MockObject_MockObject|null
      */
     protected $_out;
 
     /**
      * Console error output stub
      *
-     * @var \Cake\Console\ConsoleOutput|\PHPUnit_Framework_MockObject_MockObject|null
+     * @var \Cake\TestSuite\Stub\ConsoleOutput|\PHPUnit_Framework_MockObject_MockObject|null
      */
     protected $_err;