ソースを参照

fix autoload by removing static entry for Yii.php;
added include to new tests/_bootstrap.php instead

see https://github.com/yiisoft/yii2/issues/12885#issuecomment-257523695

Fabian Peter Hammerle 8 年 前
コミット
a450dba704
3 ファイル変更6 行追加5 行削除
  1. 1 4
      composer.json
  2. 1 1
      phpunit.xml
  3. 4 0
      tests/_bootstrap.php

+ 1 - 4
composer.json

@@ -18,9 +18,6 @@
     "autoload": {
         "psr-4": {
             "fphammerle\\yii2\\auth\\clientcert\\": ""
-        },
-        "files": [
-            "vendor/yiisoft/yii2/Yii.php"
-        ]
+        }
     }
 }

+ 1 - 1
phpunit.xml

@@ -1,4 +1,4 @@
-<phpunit bootstrap="vendor/autoload.php">
+<phpunit bootstrap="tests/_bootstrap.php">
   <testsuites>
     <testsuite name="helpers">
       <directory>tests</directory>

+ 4 - 0
tests/_bootstrap.php

@@ -0,0 +1,4 @@
+<?php
+
+require_once __DIR__ . '/../vendor/autoload.php';
+require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';