Skip to content

Commit

Permalink
test: test that Info::version() returns correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed May 18, 2024
1 parent eb129ba commit 70a3c4f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Unit/InfoTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

use Buggregator\Trap\Info;
use PHPUnit\Framework\TestCase;

final class InfoTest extends TestCase
{
public function testVersionIsVersion(): void
{
self::assertMatchesRegularExpression('/^\d+\.\d+\.\d+/', $v1 = Info::version());
self::assertSame($v1, Info::version());
}
}

0 comments on commit 70a3c4f

Please sign in to comment.