Skip to content

Commit

Permalink
code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergiu committed Sep 12, 2024
1 parent 0e0d55b commit 7fa32e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/ConfigProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testDependenciesHasFactories(): void
$this->assertArrayHasKey('LogWriterManager', $this->config['dependencies']['factories']);
}

public function testDependenciesHasAliases()
public function testDependenciesHasAliases(): void
{
$this->assertArrayHasKey('aliases', $this->config['dependencies']);
$this->assertArrayHasKey(FilterPluginManager::class, $this->config['dependencies']['aliases']);
Expand Down
7 changes: 1 addition & 6 deletions test/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use function set_exception_handler;

use const E_USER_NOTICE;
use const PHP_VERSION_ID;

class LoggerTest extends TestCase
{
Expand Down Expand Up @@ -188,11 +187,7 @@ public function testRegisterErrorHandler(): void

Logger::unregisterErrorHandler();

if (PHP_VERSION_ID < 80000) {
$this->assertEquals('Undefined variable: test', $writer->events[0]['message']);
} else {
$this->assertEquals('Undefined variable $test', $writer->events[0]['message']);
}
$this->assertEquals('Undefined variable $test', $writer->events[0]['message']);
}

public function testOptionsWithMock(): void
Expand Down
2 changes: 1 addition & 1 deletion test/Writer/StreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function testGetLogSeparator(): void
$this->assertIsString($this->subject->getLogSeparator());
}

public function testShutDown()
public function testShutDown(): void
{
$this->assertNull($this->subject->shutdown());
}
Expand Down

0 comments on commit 7fa32e1

Please sign in to comment.