https://github.com/devuri/basic-example-test-phpunit
https://github.com/devuri/basic-example-test-phpunit
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devuri/basic-example-test-phpunit
- Owner: devuri
- Created: 2021-01-05T23:59:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T10:57:26.000Z (over 4 years ago)
- Last Synced: 2024-10-19T14:20:16.706Z (over 1 year ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Very Basic Example Test with PHPUnit
[Ref: https://phpunit.de/getting-started/phpunit-9.html](https://phpunit.de/getting-started/phpunit-9.html).
### clone this
```bash
git clone https://github.com/devuri/Basic-Example-Test-PHPUnit.git
```
### Installer
```bash
composer install
```
### Run the Tests
Execute all tests declared in *Test.php sourcecode files in the tests directory.
```bash
./vendor/bin/phpunit tests
```
### Output.
```bash
PHPUnit 9.5.0 by Sebastian Bergmann and contributors.
. 1 / 1 (100%)
Time: 00:00.004, Memory: 4.00 MB
OK (1 tests, 1 assertions)
```