Skip to content

Commit

Permalink
Fix: Use appropriate interface
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 13, 2023
1 parent 67c1afc commit 9460893
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/Reporter/CheckstyleReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class CheckstyleReporterTest extends TestCase
{
public function testReport(): void
{
$output = $this->createMock(Console\Output\ConsoleOutputInterface::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::once())
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Reporter/ConsoleReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class ConsoleReporterTest extends TestCase
{
public function testReport(): void
{
$output = $this->createMock(Console\Output\ConsoleOutputInterface::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::exactly(3))
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Reporter/CsvReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class CsvReporterTest extends TestCase
{
public function testReport(): void
{
$output = $this->createMock(Console\Output\ConsoleOutputInterface::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::once())
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Reporter/GitLabReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use FriendsOfTwig\Twigcs\Reporter\GitLabReporter;
use FriendsOfTwig\Twigcs\Validator\Violation;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console;

/**
* @internal
Expand All @@ -18,7 +18,7 @@ final class GitLabReporterTest extends TestCase
{
public function testReport(): void
{
$output = $this->createMock(ConsoleOutput::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::once())
Expand Down Expand Up @@ -77,7 +77,7 @@ public function testReport(): void

public function testReportWithJsonException(): void
{
$output = $this->createMock(ConsoleOutput::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$reporter = new GitLabReporter();

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Reporter/GithubActionReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class GithubActionReporterTest extends TestCase
{
public function testReport(): void
{
$output = $this->createMock(Console\Output\ConsoleOutputInterface::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::once())
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Reporter/JsonReporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class JsonReporterTest extends TestCase
{
public function testReport(): void
{
$output = $this->createMock(Console\Output\ConsoleOutputInterface::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::once())
Expand Down Expand Up @@ -56,7 +56,7 @@ public function testReport(): void

public function testReportMultiple(): void
{
$output = $this->createMock(Console\Output\ConsoleOutputInterface::class);
$output = $this->createMock(Console\Output\OutputInterface::class);

$output
->expects(self::once())
Expand Down

0 comments on commit 9460893

Please sign in to comment.