Skip to content

Commit

Permalink
Update Coding Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jun 12, 2021
1 parent db321c7 commit bbc470e
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 132 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require-dev": {
"ext-xdebug": "*",
"ergebnis/composer-normalize": "^2.13",
"natanfelles/coding-standard": "^1.2",
"natanfelles/coding-standard": "^1.5",
"phpmd/phpmd": "^2.10",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit": "^9.5"
Expand Down
24 changes: 12 additions & 12 deletions tests/LogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Framework\Log\Log;
use PHPUnit\Framework\TestCase;

class LogTest extends TestCase
final class LogTest extends TestCase
{
protected Log $log;

Expand All @@ -16,18 +16,18 @@ protected function setUp() : void
);
}

public function testProperties()
public function testProperties() : void
{
$this->assertSame('/tmp/logs/2021-06-10.log', $this->log->filename);
$this->assertSame('2021-06-10', $this->log->date);
$this->assertSame('01:55:15', $this->log->time);
$this->assertSame('DEBUG', $this->log->levelName);
$this->assertSame('abc123', $this->log->id);
$this->assertSame('foo bar', $this->log->message);
$this->assertTrue($this->log->written);
self::assertSame('/tmp/logs/2021-06-10.log', $this->log->filename);
self::assertSame('2021-06-10', $this->log->date);
self::assertSame('01:55:15', $this->log->time);
self::assertSame('DEBUG', $this->log->levelName);
self::assertSame('abc123', $this->log->id);
self::assertSame('foo bar', $this->log->message);
self::assertTrue($this->log->written);
}

public function testInvalidProperty()
public function testInvalidProperty() : void
{
$this->expectException(\Error::class);
$this->expectExceptionMessage(
Expand All @@ -36,9 +36,9 @@ public function testInvalidProperty()
$this->log->foo;
}

public function testToString()
public function testToString() : void
{
$this->assertSame(
self::assertSame(
'01:55:15 DEBUG abc123 foo bar',
(string) $this->log
);
Expand Down
Loading

0 comments on commit bbc470e

Please sign in to comment.