File tree Expand file tree Collapse file tree 6 files changed +143
-4
lines changed Expand file tree Collapse file tree 6 files changed +143
-4
lines changed Original file line number Diff line number Diff line change 1
- .php-cs-fixer.cache
2
- auth.json
1
+ /.php-cs-fixer.cache
2
+ /auth.json
3
+ /Test /.phpunit.result.cache
3
4
/vendor /
Original file line number Diff line number Diff line change @@ -39,4 +39,4 @@ checkquality:
39
39
40
40
.PHONY : test
41
41
test :
42
- vendor/bin/phpunit Test/
42
+ vendor/bin/phpunit -c Test/phpunit.xml Test/
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ // took some inspiration from: https://magento.stackexchange.com/a/116987/2911
4
+
5
+ declare (strict_types=1 );
6
+
7
+ use Magento \Framework \Code \Generator \Io ;
8
+ use Magento \Framework \Filesystem \Driver \File ;
9
+ use Magento \Framework \TestFramework \Unit \Autoloader \ExtensionAttributesGenerator ;
10
+ use Magento \Framework \TestFramework \Unit \Autoloader \ExtensionAttributesInterfaceGenerator ;
11
+ use Magento \Framework \TestFramework \Unit \Autoloader \FactoryGenerator ;
12
+ use Magento \Framework \TestFramework \Unit \Autoloader \GeneratedClassesAutoloader ;
13
+
14
+ $ generatorIo = new Io (
15
+ new File (),
16
+ org \bovigo \vfs \vfsStream::setup ('my_generated_classes ' )->url ()
17
+ );
18
+ $ generatedCodeAutoloader = new GeneratedClassesAutoloader (
19
+ [
20
+ new ExtensionAttributesGenerator (),
21
+ new ExtensionAttributesInterfaceGenerator (),
22
+ new FactoryGenerator (),
23
+ ],
24
+ $ generatorIo
25
+ );
26
+ spl_autoload_register ([$ generatedCodeAutoloader , 'load ' ]);
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 =" http://schema.phpunit.de/9.5/phpunit.xsd"
4
+ colors =" true"
5
+ columns =" max"
6
+ bootstrap =" ./bootstrap.php"
7
+ >
8
+ </phpunit >
Original file line number Diff line number Diff line change 25
25
"ergebnis/composer-normalize" : " ^2.2" ,
26
26
"friendsofphp/php-cs-fixer" : " ^3.0" ,
27
27
"magento/magento-coding-standard" : " ^6.0" ,
28
+ "mikey179/vfsstream" : " ^1.6" ,
28
29
"phpcompatibility/php-compatibility" : " ^9.2" ,
29
30
"phpstan/extension-installer" : " ^1.0" ,
30
31
"phpstan/phpstan" : " ^0.12.26" ,
32
+ "phpstan/phpstan-deprecation-rules" : " ^0.12.6" ,
31
33
"phpunit/phpunit" : " ^9.0"
32
34
},
33
35
"config" : {
You can’t perform that action at this time.
0 commit comments