-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Refactor tests and skip unimplemented tests
- Skip tests that are not implemented yet in `TestCommandTest.php` and `Pest.php`. - Change test cases to return success and error JSON responses instead of reporting exceptions in `FeatureTest.php`. - Add new `ArchTest.php` file for architecture checks. - Update `ApiResponseServiceProviderTest.php` to skip the test for provides.
- Loading branch information
Showing
7 changed files
with
49 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright (c) 2024 guanguans<ityaozm@gmail.com> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
* | ||
* @see https://github.com/guanguans/laravel-api-response | ||
*/ | ||
// arch('will not use debugging functions') | ||
// ->expect([ | ||
// 'dd', | ||
// 'die', | ||
// 'dump', | ||
// 'echo', | ||
// 'env', | ||
// 'env_explode', | ||
// 'env_getcsv', | ||
// 'exit', | ||
// 'print', | ||
// 'print_r', | ||
// 'printf', | ||
// 'ray', | ||
// 'trap', | ||
// 'var_dump', | ||
// 'var_export', | ||
// 'vprintf', | ||
// ]) | ||
// ->each->not->toBeUsed(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters