File tree Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 26
26
}
27
27
},
28
28
"require-dev" : {
29
+ "phpunit/phpunit" : " ^10.5|^11.0" ,
29
30
"vimeo/psalm" : " ^5.21"
30
31
},
32
+ "autoload-dev" : {
33
+ "psr-4" : {
34
+ "Phplrt\\ Contracts\\ Exception\\ Tests\\ " : " tests"
35
+ }
36
+ },
31
37
"extra" : {
32
38
"branch-alias" : {
33
39
"dev-master" : " 4.x-dev" ,
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
4
+ colors =" true"
5
+ backupGlobals =" true"
6
+ stopOnFailure =" false"
7
+ processIsolation =" false"
8
+ bootstrap =" vendor/autoload.php"
9
+ cacheDirectory =" vendor/.phpunit.cache"
10
+ backupStaticProperties =" false"
11
+ >
12
+ <testsuites >
13
+ <testsuite name =" unit" >
14
+ <directory >tests</directory >
15
+ </testsuite >
16
+ </testsuites >
17
+
18
+ <coverage />
19
+
20
+ <source >
21
+ <include >
22
+ <directory suffix =" .php" >src</directory >
23
+ </include >
24
+ </source >
25
+
26
+ <php >
27
+ <ini name =" error_reporting" value =" -1" />
28
+ <ini name =" memory_limit" value =" -1" />
29
+ </php >
30
+ </phpunit >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Phplrt \Contracts \Exception \Tests ;
6
+
7
+ use Phplrt \Contracts \Exception \RuntimeExceptionInterface ;
8
+ use Phplrt \Contracts \Lexer \TokenInterface ;
9
+ use Phplrt \Contracts \Source \ReadableInterface ;
10
+ use PHPUnit \Framework \Attributes \Group ;
11
+
12
+ #[Group('phplrt/exception-contracts ' )]
13
+ class CompatibilityTest extends TestCase
14
+ {
15
+ public function testRuntimeExceptionCompatibility (): void
16
+ {
17
+ self ::expectNotToPerformAssertions ();
18
+
19
+ new class extends \Exception implements RuntimeExceptionInterface {
20
+ public function getToken (): TokenInterface {}
21
+ public function getSource (): ReadableInterface {}
22
+ };
23
+ }
24
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Phplrt \Contracts \Exception \Tests ;
6
+
7
+ use PHPUnit \Framework \Attributes \Group ;
8
+ use PHPUnit \Framework \TestCase as BaseTestCase ;
9
+
10
+ #[Group('phplrt/exception-contracts ' )]
11
+ abstract class TestCase extends BaseTestCase {}
You can’t perform that action at this time.
0 commit comments