目的に合うようにカスタム作成された不透明箱で開発中です。 PHPUnitのバージョンは5.2.12
、Laravelのバージョンは5.2.22
です。
私はphpunit
コマンドを実行していたとき、私は次のエラーを取得:以下
PHPUnit_Framework_Exception: PHPUnit_Framework_TestCase::$name must not be null.
コード
私phpunit.xmlコンテンツである:したがって、基本的
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="true"
stopOnFailure="false"
stderr="true">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">app/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>
おそらく、ここにコードを追加する必要があります。 phpunit.xmlであり、テスト自体である可能性があります。 '$ name'はクラス名の後に自動的に[TestCase constructor](https://github.com/sebastianbergmann/phpunit/blob/5.2.12/src/Framework/TestCase.php#L275)に割り当てられます。 –
それを手伝ってもらえますか? @AlexBlex –
コードなしで私は推測できます。助けにならないgithub https://github.com/laravel/laravel/releasesにはLaravel v 5.2.22はありません。 –