Ne-Lexa 5 лет назад
Родитель
Сommit
495dd47df4
2 измененных файлов с 28 добавлено и 35 удалено
  1. 1 1
      .github/workflows/build.yml
  2. 27 34
      phpunit.xml

+ 1 - 1
.github/workflows/build.yml

@@ -10,7 +10,7 @@ jobs:
 
         env:
             extensions:       bz2, dom, iconv, fileinfo, openssl, xml, zlib, gd
-            key:              cache-v1
+            key:              cache-v2
             PHPUNIT_COVERAGE: 0
             PHP_INI:          date.timezone='UTC', memory_limit=-1, opcache.enable=1, opcache.enable_cli=1
 

+ 27 - 34
phpunit.xml

@@ -1,35 +1,28 @@
-<?xml version="1.0" encoding="utf-8" ?>
-
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
-         colors="true"
-         bootstrap="bootstrap.php">
-    <php>
-        <ini name="error_reporting" value="-1"/>
-    </php>
-
-    <testsuites>
-        <testsuite name="all_tests">
-            <directory>tests</directory>
-        </testsuite>
-        <testsuite name="only_fast_tests">
-            <directory>tests</directory>
-            <exclude>tests/SlowTests</exclude>
-        </testsuite>
-        <testsuite name="only_slow_tests">
-            <directory>tests/SlowTests</directory>
-        </testsuite>
-    </testsuites>
-
-    <groups>
-        <exclude>
-            <group>large</group>
-        </exclude>
-    </groups>
-
-    <filter>
-        <whitelist>
-            <directory>src</directory>
-        </whitelist>
-    </filter>
+<?xml version="1.0" encoding="utf-8"?>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" bootstrap="bootstrap.php">
+  <coverage>
+    <include>
+      <directory>src</directory>
+    </include>
+  </coverage>
+  <php>
+    <ini name="error_reporting" value="-1"/>
+  </php>
+  <testsuites>
+    <testsuite name="all_tests">
+      <directory>tests</directory>
+    </testsuite>
+    <testsuite name="only_fast_tests">
+      <directory>tests</directory>
+      <exclude>tests/SlowTests</exclude>
+    </testsuite>
+    <testsuite name="only_slow_tests">
+      <directory>tests/SlowTests</directory>
+    </testsuite>
+  </testsuites>
+  <groups>
+    <exclude>
+      <group>large</group>
+    </exclude>
+  </groups>
 </phpunit>