Always use TestCase of testing framework

That way the framework can add extra logic like cleanup.
We don't have to worry about such things.
This commit is contained in:
Daniel Siepmann 2020-09-16 16:27:45 +02:00
parent b6d1189f4d
commit 165b110e01
11 changed files with 11 additions and 11 deletions

View file

@ -23,7 +23,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
use DanielSiepmann\Tracking\Domain\Model\Extractor;
use DanielSiepmann\Tracking\Domain\Model\HasUserAgent;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
/**

View file

@ -22,7 +22,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
*/
use DanielSiepmann\Tracking\Domain\Model\Pageview;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;

View file

@ -22,7 +22,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
*/
use DanielSiepmann\Tracking\Domain\Model\RecordRule;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/**
* @covers DanielSiepmann\Tracking\Domain\Model\RecordRule

View file

@ -22,7 +22,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
*/
use DanielSiepmann\Tracking\Domain\Model\Recordview;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;

View file

@ -23,7 +23,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Pageview;
use DanielSiepmann\Tracking\Domain\Model\Pageview;
use DanielSiepmann\Tracking\Domain\Pageview\Factory;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophet;
use Psr\Http\Message\ServerRequestInterface;

View file

@ -24,11 +24,11 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Recordview;
use DanielSiepmann\Tracking\Domain\Model\RecordRule;
use DanielSiepmann\Tracking\Domain\Model\Recordview;
use DanielSiepmann\Tracking\Domain\Recordview\Factory;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Routing\PageArguments;
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/**
* @covers DanielSiepmann\Tracking\Domain\Recordview\Factory

View file

@ -25,7 +25,7 @@ use DanielSiepmann\Tracking\Domain\Model\Pageview as Model;
use DanielSiepmann\Tracking\Domain\Pageview\Factory;
use DanielSiepmann\Tracking\Domain\Repository\Pageview;
use Doctrine\DBAL\Statement;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Database\Query\QueryBuilder;

View file

@ -23,7 +23,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Repository;
use DanielSiepmann\Tracking\Domain\Model\Recordview as Model;
use DanielSiepmann\Tracking\Domain\Repository\Recordview;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;

View file

@ -24,7 +24,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Middleware;
use DanielSiepmann\Tracking\Domain\Model\Pageview as Model;
use DanielSiepmann\Tracking\Domain\Repository\Pageview as Repository;
use DanielSiepmann\Tracking\Middleware\Pageview;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
use Psr\Http\Message\ResponseInterface;

View file

@ -24,7 +24,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Middleware;
use DanielSiepmann\Tracking\Domain\Model\Recordview as Model;
use DanielSiepmann\Tracking\Domain\Repository\Recordview as Repository;
use DanielSiepmann\Tracking\Middleware\Recordview;
use PHPUnit\Framework\TestCase;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
use Psr\Http\Message\ResponseInterface;

View file

@ -46,7 +46,7 @@
"jangregor/phpstan-prophecy": "^0.8.1",
"maglnet/composer-require-checker": "^3.2",
"phpspec/prophecy-phpunit": "^2.0",
"typo3/testing-framework": "^6.3",
"typo3/testing-framework": "^6.8.2",
"saschaegerer/phpstan-typo3": "^0.13.1"
},
"minimum-stability": "dev",