File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11.idea
2+ .phpunit.cache
23.DS_Store
34mariadb /data /*
45mariadb /logs /*
Original file line number Diff line number Diff line change 3535 docker compose exec -T php-fpm composer install
3636 ```
3737
38- 4 . ** Run PHPUnit tests:**
38+ 4 . ** Run PHPUnit tests with code coverage :**
3939 ``` sh
40- docker compose exec -T php-fpm ./vendor/bin/phpunit tests
40+ docker compose exec -T php-fpm ./vendor/bin/phpunit --coverage-text --testdox tests
4141 ```
4242
4343## Example PHPUnit Test
@@ -49,13 +49,17 @@ An example PHPUnit test is included in the `tests` directory:
4949
5050<?php
5151
52+ declare(strict_types=1);
53+
5254use PHPUnit\Framework\TestCase;
55+ use App\Example;
5356
5457class ExampleTest extends TestCase
5558{
5659 public function testExample()
5760 {
58- $this->assertTrue(true);
61+ $example = new Example();
62+ $this->assertTrue($example->doSomething());
5963 }
6064}
6165```
You can’t perform that action at this time.
0 commit comments