Optimized test structure

This commit is contained in:
Kevin Frantz 2018-09-05 19:12:57 +02:00
parent 5e70b0cadb
commit 56adc559e3
4 changed files with 7 additions and 4 deletions

View File

@ -18,8 +18,8 @@
</php> </php>
<testsuites> <testsuites>
<testsuite name="Functional Test Suite"> <testsuite name="Integration Test Suite">
<directory>tests/</directory> <directory>./integration/</directory>
</testsuite> </testsuite>
<testsuite name="Unit Test Suite"> <testsuite name="Unit Test Suite">
<directory>./src/</directory> <directory>./src/</directory>

View File

View File

@ -1,7 +1,10 @@
<?php <?php
namespace App\Controller; namespace App\Tests\Unit\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use App\Controller\DefaultControllerInterface;
use App\Controller\DefaultController;
/** /**
* *

View File

@ -1,5 +1,5 @@
<?php <?php
namespace App\Controller; namespace App\Tests\Unit\Controller;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use App\Controller\UserController; use App\Controller\UserController;