File tree Expand file tree Collapse file tree 5 files changed +26
-25
lines changed Expand file tree Collapse file tree 5 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 1
1
.gitattributes export-ignore
2
2
.gitignore export-ignore
3
+ tests / export-ignore
4
+
5
+ phpunit.xml
6
+ psalm.xml
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " ^8.1 " ,
20
- "phplrt/lexer-contracts" : " ^4.0 " ,
21
- "phplrt/source-contracts" : " ^4.0 "
19
+ "php" : " ^7.4|^8.0 " ,
20
+ "phplrt/lexer-contracts" : " ^3.4 " ,
21
+ "phplrt/source-contracts" : " ^3.4 "
22
22
},
23
23
"autoload" : {
24
24
"psr-4" : {
25
25
"Phplrt\\ Contracts\\ Exception\\ " : " src"
26
26
}
27
27
},
28
28
"require-dev" : {
29
- "phpunit/phpunit" : " ^10.5|^11 .0" ,
29
+ "phpunit/phpunit" : " ^9.6|^10 .0" ,
30
30
"vimeo/psalm" : " ^5.21"
31
31
},
32
32
"autoload-dev" : {
36
36
},
37
37
"extra" : {
38
38
"branch-alias" : {
39
- "dev-master" : " 4 .x-dev" ,
40
- "dev-main" : " 4 .x-dev"
39
+ "dev-master" : " 3 .x-dev" ,
40
+ "dev-main" : " 3 .x-dev"
41
41
}
42
42
},
43
43
"config" : {
Original file line number Diff line number Diff line change
1
+
1
2
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
3
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
4
- colors =" true"
4
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.6/phpunit.xsd"
5
5
backupGlobals =" true"
6
- stopOnFailure =" false"
7
- processIsolation =" false"
6
+ backupStaticAttributes =" false"
8
7
bootstrap =" vendor/autoload.php"
9
- cacheDirectory =" vendor/.phpunit.cache"
10
- backupStaticProperties =" false"
8
+ colors =" true"
9
+ convertErrorsToExceptions =" true"
10
+ convertNoticesToExceptions =" true"
11
+ convertWarningsToExceptions =" true"
12
+ processIsolation =" false"
13
+ stopOnFailure =" false"
11
14
>
15
+ <php >
16
+ <ini name =" error_reporting" value =" -1" />
17
+ <ini name =" memory_limit" value =" -1" />
18
+ </php >
19
+
12
20
<testsuites >
13
21
<testsuite name =" unit" >
14
22
<directory >tests</directory >
15
23
</testsuite >
16
24
</testsuites >
17
25
18
- <coverage />
19
-
20
- <source >
26
+ <coverage >
21
27
<include >
22
28
<directory suffix =" .php" >src</directory >
23
29
</include >
24
- </source >
25
-
26
- <php >
27
- <ini name =" error_reporting" value =" -1" />
28
- <ini name =" memory_limit" value =" -1" />
29
- </php >
30
+ </coverage >
30
31
</phpunit >
Original file line number Diff line number Diff line change 7
7
use Phplrt \Contracts \Exception \RuntimeExceptionInterface ;
8
8
use Phplrt \Contracts \Lexer \TokenInterface ;
9
9
use Phplrt \Contracts \Source \ReadableInterface ;
10
- use PHPUnit \Framework \Attributes \Group ;
11
10
12
11
/**
13
12
* Note: Changing the behavior of these tests is allowed ONLY when updating
14
13
* a MAJOR version of the package.
15
14
*/
16
- #[Group('phplrt/exception-contracts ' )]
17
15
class CompatibilityTest extends TestCase
18
16
{
19
17
public function testRuntimeExceptionCompatibility (): void
Original file line number Diff line number Diff line change 4
4
5
5
namespace Phplrt \Contracts \Exception \Tests ;
6
6
7
- use PHPUnit \Framework \Attributes \Group ;
8
7
use PHPUnit \Framework \TestCase as BaseTestCase ;
9
8
10
- #[Group('phplrt/exception-contracts ' )]
11
9
abstract class TestCase extends BaseTestCase {}
You can’t perform that action at this time.
0 commit comments