Summer Sale! All accounts are 50% off this week.

iamamirsalehi's avatar

phpunit No access

Hi there, After installing and running ./vendor/bin/phpunit command I get no access message. phpunit.xml:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         executionOrder="depends,defects"
         forceCoversAnnotation="true"
         beStrictAboutCoversAnnotation="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutTodoAnnotatedTests="true"
         verbose="true">
    <testsuites>
        <testsuite name="default">
            <directory suffix="Test.php">tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./app</directory>
        </whitelist>
    </filter>
</phpunit>

SampleTest.php inside tests directory:

<?php

class SampleTest extends \PHPUnit\Framework\TestCase
{
    public function testEnsureTrue()
    {
        $this->assertTrue(true);
    }
}
0 likes
5 replies
sr57's avatar

Any error in your logs?

Have you test in a fresh install of Laravel?

Please or to participate in this conversation.