Skip to content

Commit a8b0641

Browse files
committed
test(test): Update pest command to include colors
- Updated the pest command in composer.json to include the colors option for better readability.
1 parent fceddcd commit a8b0641

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,11 @@ public function register(): void
6060
);
6161
}
6262

63-
public function boot(): void {}
63+
/**
64+
* Bootstrap any application services.
65+
*/
66+
public function boot(): void
67+
{
68+
// ...
69+
}
6470
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"mark-start": "printf '\\n!\\n!\\t\\033[0;36m%s\\033[0m\\n!\\n\\n' \"Started\"",
168168
"md-fix": "@md-lint --fix",
169169
"md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/",
170-
"pest": "@php ./vendor/bin/pest --coverage --profile",
170+
"pest": "@php ./vendor/bin/pest --coverage --profile --colors=always",
171171
"pest-coverage": "@pest --coverage-html=./build/phpunit/ --coverage-clover=./clover.xml",
172172
"pest-migrate-configuration": "@pest --migrate-configuration",
173173
"pest-type-coverage": "@pest --type-coverage",

tests/ArchTest.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* Copyright (c) 2019-2024 guanguans<ityaozm@gmail.com>
7+
*
8+
* For the full copyright and license information, please view
9+
* the LICENSE file that was distributed with this source code.
10+
*
11+
* @see https://github.com/guanguans/music-dl
12+
*/
13+
14+
namespace Tests;
15+
16+
// arch('will not use debugging functions')
17+
// ->expect([
18+
// 'echo',
19+
// 'print',
20+
// 'die',
21+
// 'exit',
22+
// 'printf',
23+
// 'vprintf',
24+
// 'var_dump',
25+
// 'dump',
26+
// 'dd',
27+
// 'ray',
28+
// 'print_r',
29+
// 'var_export',
30+
// ])
31+
// ->each->not->toBeUsed();

0 commit comments

Comments
 (0)