Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a0e9e9

Browse files
author
Marc Wolf
committed
Update README.md and .gitignore
1 parent cec5706 commit 8a0e9e9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
.phpunit.cache
23
.DS_Store
34
mariadb/data/*
45
mariadb/logs/*

‎README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
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+
5254
use PHPUnit\Framework\TestCase;
55+
use App\Example;
5356

5457
class 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
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /