File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - script : |
2929 cd e2e/composer-version
3030 composer install
31- vendor/bin/phpstan
31+ OUTPUT=$(../bashunit -a exit_code "1" "vendor/bin/phpstan --error-format=raw)
32+ echo "$OUTPUT"
33+ ../bashunit -a contains 'test.php:12:Version requirement will always evaluate to false.' "$OUTPUT"
34+ ../bashunit -a contains 'test.php:32:Version requirement will always evaluate to false.' "$OUTPUT"
3235
3336 steps :
3437 - name : Harden the runner (Audit all outbound calls)
Original file line number Diff line number Diff line change 11includes :
22 - phar://phpstan.phar/conf/bleedingEdge.neon
3+
4+ parameters :
5+ level : 5
Original file line number Diff line number Diff line change 11<?php
22
33use PHPUnit \Framework \Attributes \RequiresPhp ;
4+ use PHPUnit \Framework \Attributes \RequiresPhpunit ;
45
56class A extends \PHPUnit \Framework \TestCase {
67 #[RequiresPhp('<=8.2.0 ' )]
@@ -21,3 +22,13 @@ class D extends \PHPUnit\Framework\TestCase {
2122 #[RequiresPhp('^8.1.0 ' )]
2223 public function testFoo () {}
2324}
25+
26+ class E extends \PHPUnit \Framework \TestCase {
27+ #[RequiresPhpunit('^12.0.0 ' )]
28+ public function testFoo () {}
29+ }
30+
31+ class F extends \PHPUnit \Framework \TestCase {
32+ #[RequiresPhpunit('^11.0.0 ' )]
33+ public function testFoo () {}
34+ }
You can’t perform that action at this time.
0 commit comments