phpunit coverate checks added with report to HTMl, phpstan check fixes for enum
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ tools/
|
||||
**/.env
|
||||
**/.target
|
||||
package-lock.json
|
||||
build/
|
||||
|
||||
@@ -49,6 +49,7 @@ php_version="";
|
||||
no_php_version=0;
|
||||
use_composer=0;
|
||||
opt_generate_coverage="";
|
||||
opt_generate_coverage_html="";
|
||||
while [ -n "${1-}" ]; do
|
||||
case "${1}" in
|
||||
-t | --testdox)
|
||||
@@ -65,6 +66,10 @@ while [ -n "${1-}" ]; do
|
||||
opt_generate_coverage="--coverage-text";
|
||||
shift
|
||||
;;
|
||||
--coverage-report)
|
||||
opt_generate_coverage_html="--coverage-html build/coverage-report";
|
||||
shift
|
||||
;;
|
||||
-p | --php)
|
||||
php_version="${2-}";
|
||||
shift
|
||||
@@ -114,6 +119,7 @@ PHPUNIT_CALL+=(
|
||||
"${opt_testdox}"
|
||||
"${opt_verbose}"
|
||||
"${opt_generate_coverage}"
|
||||
"${opt_generate_coverage_html}"
|
||||
"-c" "${PHPUNIT_CONFIG}"
|
||||
"${BASE_PATH}4dev/tests/"
|
||||
);
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
// https://www.typescriptlang.org/tsconfig/#compilerOptions
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
// if "bundler"
|
||||
// "module": "ESNext",
|
||||
"module": "NodeNext",
|
||||
// "bundler" (front), "nodenext" or "node16"
|
||||
"moduleResolution": "nodenext",
|
||||
"target": "ES2020",
|
||||
"jsx": "react",
|
||||
"checkJs": true,
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
<include>
|
||||
<directory suffix=".php">./www/lib/CoreLibs</directory>
|
||||
</include>
|
||||
<!-- <report>
|
||||
<html outputDirectory="build/coverage-report"/>
|
||||
</report> -->
|
||||
</coverage>
|
||||
<!-- <source>
|
||||
<include>
|
||||
|
||||
@@ -51,7 +51,7 @@ enum Convert: int
|
||||
/**
|
||||
* Get internal name from int value
|
||||
*
|
||||
* @param int $value
|
||||
* @param int $value
|
||||
* @return self
|
||||
*/
|
||||
public static function fromValue(int $value): self
|
||||
|
||||
@@ -63,7 +63,7 @@ enum Flag: int
|
||||
/**
|
||||
* Get internal name from int value
|
||||
*
|
||||
* @param int $value
|
||||
* @param value-of<self::VALUES> $value
|
||||
* @return self
|
||||
*/
|
||||
public static function fromValue(int $value): self
|
||||
|
||||
Reference in New Issue
Block a user