PHP code example of dashworthy / pest-plugin-arch-coverage
1. Go to this page and download the library: Download dashworthy/pest-plugin-arch-coverage library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dashworthy / pest-plugin-arch-coverage example snippets
arch('every domain class has a mirrored test')
->expect('App\Domains')
->toHaveTests([
app_path('Domains') => base_path('tests/Unit/Domains'),
]);
arch('every domain class has a mirrored test')
->expect('App\Domains')
->toHaveTests([
app_path('Domains') => base_path('tests/Unit/Domains'),
app_path('Domains/Platform/Billing/Controllers')
=> base_path('tests/Feature/Domains/Platform/Billing/Controllers'),
]);