Skip to content

Commit

Permalink
Fix ErrorBagTest
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Jan 18, 2024
1 parent 81338d3 commit 8f9c3d6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/MailMimeParser/ErrorBagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,12 @@
*/
class ErrorBagTest extends TestCase
{
// @phpstan-ignore-next-line
private $mockLogger;

protected function setUp(): void
{
$this->mockLogger = $this->getMockBuilder('\\' . NullLogger::class)
->getMock();
}

private function newErrorBagStub($children = [])
{
$stub = $this->getMockBuilder('\\' . ErrorBag::class)
->getMockForAbstractClass();
$stub->method('getErrorBagChildren')
->willReturn($children);
$stub->setLogger($this->mockLogger);
return $stub;
}

Expand All @@ -40,8 +30,6 @@ public function testInstance() : void
$ob = $this->newErrorBagStub();
$this->assertInstanceOf(ErrorBag::class, $ob);
$this->assertInstanceOf(IErrorBag::class, $ob);
$this->assertInstanceOf(ILogger::class, $ob);
$this->assertInstanceOf(Logger::class, $ob);
}

public function testGetErrorLoggingContextName() : void
Expand Down

0 comments on commit 8f9c3d6

Please sign in to comment.