|
22 | 22 | use Magento\Setup\Module\Di\App\Task\OperationFactory; |
23 | 23 | use PHPUnit\Framework\MockObject\MockObject; |
24 | 24 | use PHPUnit\Framework\TestCase; |
25 | | -use Symfony\Component\Console\Formatter\OutputFormatterInterface; |
| 25 | +use Symfony\Component\Console\Formatter\OutputFormatter; |
26 | 26 | use Symfony\Component\Console\Helper\ProgressBar; |
27 | 27 | use Symfony\Component\Console\Output\OutputInterface; |
28 | 28 | use Symfony\Component\Console\Tester\CommandTester; |
@@ -62,8 +62,8 @@ class DiCompileCommandTest extends TestCase |
62 | 62 | /** @var OutputInterface|MockObject */ |
63 | 63 | private $outputMock; |
64 | 64 |
|
65 | | - /** @var OutputFormatterInterface|MockObject */ |
66 | | - private $outputFormatterMock; |
| 65 | + /** @var OutputFormatter */ |
| 66 | + private $outputFormatter; |
67 | 67 |
|
68 | 68 | /** @var Filesystem\Io\File|MockObject */ |
69 | 69 | private $fileMock; |
@@ -113,12 +113,10 @@ protected function setUp(): void |
113 | 113 | [ComponentRegistrar::LIBRARY, ['/path/to/library/one', '/path (1)/to/library/two']], |
114 | 114 | ]); |
115 | 115 |
|
116 | | - $this->outputFormatterMock = $this->createMock( |
117 | | - OutputFormatterInterface::class |
118 | | - ); |
| 116 | + $this->outputFormatter = new OutputFormatter(); |
119 | 117 | $this->outputMock = $this->getMockForAbstractClass(OutputInterface::class); |
120 | 118 | $this->outputMock->method('getFormatter') |
121 | | - ->willReturn($this->outputFormatterMock); |
| 119 | + ->willReturn($this->outputFormatter); |
122 | 120 | $this->fileMock = $this->getMockBuilder(Filesystem\Io\File::class) |
123 | 121 | ->disableOriginalConstructor() |
124 | 122 | ->getMock(); |
|
0 commit comments