Skip to content
Snippets Groups Projects
Select Git revision
  • 762f5fcd30074113fb13963dac95825e7493fe33
  • main default protected
  • v0.2.1
  • v0.2.0
  • v0.1.2
  • v0.1.0
  • v0.1.1
7 results

phpunit.xml.dist

  • Christoph Reiter's avatar
    Reiter, Christoph authored
    The core bundle no longer requires auth by default which means all
    API endpoints can be accessed without any token now.
    
    This adds one custom controlle which requires auth as an example.
    
    Also adds some basic tests for all the added endpoints.
    eac49218
    History
    phpunit.xml.dist 1.06 KiB
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
    <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php">
      <coverage>
        <include>
          <directory>src</directory>
          <directory>tests</directory>
        </include>
      </coverage>
      <php>
        <ini name="error_reporting" value="-1"/>
        <server name="APP_ENV" value="test" force="true"/>
        <server name="SHELL_VERBOSITY" value="-1"/>
        <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
        <server name="SYMFONY_PHPUNIT_VERSION" value="9"/>
        <server name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
        <server name="KERNEL_CLASS" value="DBP\API\StarterBundle\Tests\Kernel"/>
      </php>
      <testsuites>
        <testsuite name="Project Test Suite">
          <directory>tests</directory>
        </testsuite>
      </testsuites>
      <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
      </listeners>
    </phpunit>