Update makefile, tweak topictest

This commit is contained in:
Chris 2024-03-12 18:20:56 +01:00
parent 8ad250471b
commit 7953ce51ee
2 changed files with 11 additions and 2 deletions

View File

@ -20,4 +20,12 @@ phar: ## Build .phar using pharlite
.PHONY: phpstan
phpstan: ## Run static analysis
phpstan --no-progress
@phpstan --no-progress
.PHONY: phpunit
phpunit: ## Run unit tests
@phpunit --testdox --no-progress
.PHONY: coverage
coverage: ## Code coverage
@XDEBUG_MODE=coverage phpunit --coverage-text --no-progress

View File

@ -5,6 +5,7 @@ namespace NoccyLabs\Mercureact\Broker;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(Topic::class)]
#[CoversClass(Message::class)]
class TopicTest extends \PHPUnit\Framework\TestCase
{
@ -64,4 +65,4 @@ class TopicTest extends \PHPUnit\Framework\TestCase
$this->assertEquals(0, count($unauthorizedSubscriber->messages));
}
}
}