Skip to content

Commit da4d84b

Browse files
authored
Added regression test (#6848)
1 parent 74c549b commit da4d84b

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎.github/workflows/e2e-tests.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,20 @@ jobs:
18361836
extensions: ":curl"
18371837
- script: "bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php"
18381838
extensions: ""
1839+
- script: |
1840+
cd e2e/bug-11359
1841+
OUTPUT=$(../bashunit assert exit_code "1" "../../bin/phpstan analyse --no-progress --error-format raw --level=8 bug-11359.php")
1842+
echo "$OUTPUT"
1843+
../bashunit assert contains 'e2e/bug-11359/bug-11359.php:3:Function mb_ucfirst not found.' "$OUTPUT"
1844+
php-version: "8.2"
1845+
extensions: mbstring
1846+
- script: |
1847+
cd e2e/bug-11359
1848+
OUTPUT=$(../bashunit assert exit_code "0" "../../bin/phpstan analyse --no-progress --error-format raw --level=8 bug-11359.php")
1849+
echo "$OUTPUT"
1850+
../bashunit assert not_contains 'Function mb_ucfirst not found.' "$OUTPUT"
1851+
php-version: "8.4"
1852+
extensions: mbstring
18391853
- script: "bin/phpstan analyse -l 8 e2e/phpstan-phpunit-190/test.php -c e2e/phpstan-phpunit-190/test.neon"
18401854
extensions: ""
18411855
- script: "bin/phpstan analyse e2e/only-files-not-analysed-trait/src -c e2e/only-files-not-analysed-trait/ignore.neon"
@@ -2086,7 +2100,7 @@ jobs:
20862100
with:
20872101
coverage: ${{ matrix.coverage || 'none' }}
20882102
ini-values: ${{ matrix.ini-values || '' }}
2089-
php-version: "8.2"
2103+
php-version: ${{ matrix.php-version || '8.2' }}
20902104
tools: ${{ matrix.tools }}
20912105
extensions: ${{ matrix.extensions }}
20922106

‎e2e/bug-11359/bug-11359.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php declare(strict_types = 1);
2+
3+
print mb_ucfirst('hello');

0 commit comments

Comments
 (0)