mirror of https://github.com/flightphp/core
parent
4fe54ea6de
commit
43300d5758
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
// This file is only here so that the PHP8 attribute for doesn't throw an error in files
|
||||
// phpcs:ignoreFile PSR1.Classes.ClassDeclaration.MissingNamespace
|
||||
class ReturnTypeWillChange
|
||||
{
|
||||
}
|
@ -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
|
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
class Pascal_Snake_Case // phpcs:ignore
|
||||
{
|
||||
public function doILoad() // phpcs:ignore
|
||||
{
|
||||
echo 'Yes, I load!!!';
|
||||
}
|
||||
}
|
Loading…
Reference in new issue