-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #566 from flightphp/v2-loader
Added ability to load classes with _ in them
- Loading branch information
Showing
8 changed files
with
81 additions
and
24 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Run all tests | ||
composer lint | ||
composer beautify | ||
composer phpcs | ||
composer test-coverage | ||
xdg-open http://localhost:8000 | ||
composer test-server | ||
php_versions=("php7.4" "php8.0" "php8.1" "php8.2" "php8.3") | ||
|
||
count=${#php_versions[@]} | ||
|
||
|
||
echo "Prettifying code first" | ||
vendor/bin/phpcbf --standard=phpcs.xml | ||
|
||
set -e | ||
for ((i = 0; i < count; i++)); do | ||
if type "${php_versions[$i]}" &> /dev/null; then | ||
echo "Running tests for ${php_versions[$i]}" | ||
echo " ${php_versions[$i]} vendor/bin/phpunit" | ||
${php_versions[$i]} vendor/bin/phpunit | ||
|
||
echo "Running PHPStan" | ||
echo " ${php_versions[$i]} vendor/bin/phpstan" | ||
${php_versions[$i]} vendor/bin/phpstan | ||
|
||
echo "Running PHPCS" | ||
echo " ${php_versions[$i]} vendor/bin/phpcs --standard=phpcs.xml -n" | ||
${php_versions[$i]} vendor/bin/phpcs --standard=phpcs.xml -n | ||
fi | ||
done |
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,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
class Pascal_Snake_Case // phpcs:ignore | ||
{ | ||
public function doILoad() // phpcs:ignore | ||
{ | ||
echo 'Yes, I load!!!'; | ||
} | ||
} |
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