Update makefile, tweak topictest
This commit is contained in:
parent
8ad250471b
commit
7953ce51ee
10
Makefile
10
Makefile
@ -20,4 +20,12 @@ phar: ## Build .phar using pharlite
|
|||||||
|
|
||||||
.PHONY: phpstan
|
.PHONY: phpstan
|
||||||
phpstan: ## Run static analysis
|
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
|
||||||
|
@ -5,6 +5,7 @@ namespace NoccyLabs\Mercureact\Broker;
|
|||||||
use PHPUnit\Framework\Attributes\CoversClass;
|
use PHPUnit\Framework\Attributes\CoversClass;
|
||||||
|
|
||||||
#[CoversClass(Topic::class)]
|
#[CoversClass(Topic::class)]
|
||||||
|
#[CoversClass(Message::class)]
|
||||||
class TopicTest extends \PHPUnit\Framework\TestCase
|
class TopicTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -64,4 +65,4 @@ class TopicTest extends \PHPUnit\Framework\TestCase
|
|||||||
$this->assertEquals(0, count($unauthorizedSubscriber->messages));
|
$this->assertEquals(0, count($unauthorizedSubscriber->messages));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user