Made tests compatible with phpunit 8

The new simple-phpunit wrapper is selects the best phpunit version automatically and removes all the void return types if needed.
This commit is contained in:
Jan Böhmer 2019-11-23 19:12:49 +01:00
parent a62f947b86
commit 6405dee0ac
19 changed files with 19 additions and 37 deletions

View file

@ -48,7 +48,7 @@ class AttachmentPathResolverTest extends WebTestCase
self::$footprint_path = self::$projectDir.'/public/img/footprints';
}
public static function setUpBeforeClass()
public static function setUpBeforeClass() : void
{
parent::setUpBeforeClass();

View file

@ -30,7 +30,7 @@ class AttachmentURLGeneratorTest extends WebTestCase
protected static $service;
public static function setUpBeforeClass()
public static function setUpBeforeClass() : void
{
//Get an service instance.
self::bootKernel();

View file

@ -34,7 +34,7 @@ class BuiltinAttachmentsFinderTest extends WebTestCase
'%FOOTPRINTS_3D%/test.jpg', '%FOOTPRINTS_3D%/hallo.txt',
];
public static function setUpBeforeClass()
public static function setUpBeforeClass() : void
{
//Get an service instance.
self::bootKernel();

View file

@ -28,7 +28,7 @@ class FileTypeFilterToolsTest extends WebTestCase
{
protected static $service;
public static function setUpBeforeClass()
public static function setUpBeforeClass() : void
{
self::bootKernel();
self::$service = self::$container->get(FileTypeFilterTools::class);