Browse Source

Fix and update phpunit

Sergio 4 years ago
parent
commit
619d192d14
2 changed files with 8 additions and 10 deletions
  1. 0 1
      bootstrap/app.php
  2. 8 9
      phpunit.xml

+ 0 - 1
bootstrap/app.php

@@ -12,7 +12,6 @@ use DI\Bridge\Slim\Bridge;
 use DI\ContainerBuilder;
 use function DI\factory;
 use function DI\get;
-use function DI\value;
 use Psr\Container\ContainerInterface as Container;
 use Psr\Http\Message\ServerRequestInterface as Request;
 use Psr\Http\Server\RequestHandlerInterface as RequestHandler;

+ 8 - 9
phpunit.xml

@@ -9,19 +9,18 @@
          convertNoticesToExceptions="true"
          convertWarningsToExceptions="true">
     <testsuites>
-        <testsuite name="Tests">
+        <testsuite name="Feature">
             <directory suffix="Test.php">tests/Feature</directory>
         </testsuite>
     </testsuites>
     <filter>
         <whitelist processUncoveredFilesFromWhitelist="true">
-            <directory suffix=".php">src</directory>
-            <exclude>
-                <directory>bin</directory>
-                <directory>docs</directory>
-                <directory>resources</directory>
-                <directory>vendor</directory>
-            </exclude>
+            <directory suffix=".php">app</directory>
         </whitelist>
     </filter>
-</phpunit>
+    <logging>
+        <log type="coverage-html" target="./coverage"
+             lowUpperBound="70"
+             highLowerBound="90"/>
+    </logging>
+</phpunit>