We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44002eb commit 82a388aCopy full SHA for 82a388a
tests/JakubOnderka/PhpConsoleHighligter/HigligterTest.php
@@ -8,7 +8,9 @@ class HighlighterTest extends \PHPUnit_Framework_TestCase
8
9
protected function getConsoleColorMock()
10
{
11
- $mock = $this->getMock('\JakubOnderka\PhpConsoleColor\ConsoleColor');
+ $mock = method_exists($this, 'createMock')
12
+ ? $this->createMock('\JakubOnderka\PhpConsoleColor\ConsoleColor')
13
+ : $this->getMock('\JakubOnderka\PhpConsoleColor\ConsoleColor');
14
15
$mock->expects($this->any())
16
->method('apply')
@@ -260,4 +262,4 @@ public function testEmpty()
260
262
''
261
263
);
264
}
-}
265
+}
0 commit comments