cs: Switch to a stricter way of coding - this might break in a lot of places.

This commit is contained in:
Pol Dellaiera
2021-11-30 13:33:18 +01:00
parent 28d2c42454
commit 47c5855a21
957 changed files with 9025 additions and 568 deletions

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Security\Authorization;
use Chill\MainBundle\Security\ParentRoleHelper;
@@ -17,7 +26,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class ParentRoleHelperTest extends KernelTestCase
final class ParentRoleHelperTest extends KernelTestCase
{
private ParentRoleHelper $parentRoleHelper;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Controller;
use Chill\MainBundle\Entity\Address;
@@ -18,7 +27,7 @@ use Symfony\Bundle\FrameworkBundle\KernelBrowser;
* @internal
* @coversNothing
*/
class AddressControllerTest extends \Symfony\Bundle\FrameworkBundle\Test\WebTestCase
final class AddressControllerTest extends \Symfony\Bundle\FrameworkBundle\Test\WebTestCase
{
use PrepareClientTrait;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -15,12 +24,12 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
class CenterControllerTest extends WebTestCase
final class CenterControllerTest extends WebTestCase
{
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient([], [
$client = self::createClient([], [
'PHP_AUTH_USER' => 'admin',
'PHP_AUTH_PW' => 'password',
'HTTP_ACCEPT_LANGUAGE' => 'fr_FR',

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -17,11 +26,11 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
class ExportControllerTest extends WebTestCase
final class ExportControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient([], [
$client = self::createClient([], [
'PHP_AUTH_USER' => 'center a_social',
'PHP_AUTH_PW' => 'password',
'HTTP_ACCEPT_LANGUAGE' => 'fr_FR',

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -16,11 +25,11 @@ use Symfony\Component\HttpFoundation\Response;
* @internal
* @coversNothing
*/
class LoginControllerTest extends WebTestCase
final class LoginControllerTest extends WebTestCase
{
public function testLogin()
{
$client = static::createClient();
$client = self::createClient();
//load login page and submit form
$crawler = $client->request('GET', '/login');

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Controller;
use Chill\MainBundle\Test\PrepareClientTrait;
@@ -17,7 +26,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
class PermissionApiControllerTest extends WebTestCase
final class PermissionApiControllerTest extends WebTestCase
{
use PrepareClientTrait;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -15,7 +24,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
class PermissionsGroupControllerTest extends WebTestCase
final class PermissionsGroupControllerTest extends WebTestCase
{
public function testEmpty()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -15,12 +24,12 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
class ScopeControllerTest extends WebTestCase
final class ScopeControllerTest extends WebTestCase
{
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient([], [
$client = self::createClient([], [
'PHP_AUTH_USER' => 'admin',
'PHP_AUTH_PW' => 'password',
'HTTP_ACCEPT_LANGUAGE' => 'fr_FR',

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bundle\ChillMainBundle\Tests\Controller;
use Chill\MainBundle\Test\PrepareClientTrait;
@@ -17,7 +26,7 @@ use Symfony\Component\HttpFoundation\Request;
* @internal
* @coversNothing
*/
class SearchApiControllerTest extends WebTestCase
final class SearchApiControllerTest extends WebTestCase
{
use PrepareClientTrait;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -17,7 +26,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
* @internal
* @coversNothing
*/
class SearchControllerTest extends WebTestCase
final class SearchControllerTest extends WebTestCase
{
public function testDomainUnknow()
{
@@ -90,7 +99,7 @@ class SearchControllerTest extends WebTestCase
private function getAuthenticatedClient()
{
return static::createClient([], [
return self::createClient([], [
'PHP_AUTH_USER' => 'center b_social',
'PHP_AUTH_PW' => 'password',
]);

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Chill\MainBundle\Test\PrepareClientTrait;
@@ -19,7 +28,7 @@ use function json_decode;
* @internal
* @coversNothing
*/
class UserApiControllerTest extends WebTestCase
final class UserApiControllerTest extends WebTestCase
{
use PrepareClientTrait;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Controller;
use Chill\MainBundle\Entity\User;
@@ -18,7 +27,7 @@ use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
* @internal
* @coversNothing
*/
class UserControllerTest extends WebTestCase
final class UserControllerTest extends WebTestCase
{
private $client;
@@ -28,7 +37,7 @@ class UserControllerTest extends WebTestCase
{
self::bootKernel();
$this->client = static::createClient([], [
$this->client = self::createClient([], [
'PHP_AUTH_USER' => 'admin',
'PHP_AUTH_PW' => 'password',
'HTTP_ACCEPT_LANGUAGE' => 'fr_FR',

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Doctrine\Model;
use Chill\MainBundle\Doctrine\Model\Point;
@@ -18,7 +27,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class PointTest extends KernelTestCase
final class PointTest extends KernelTestCase
{
public function testFromArrayGeoJson()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Export;
use Chill\MainBundle\Export\AggregatorInterface;
@@ -29,7 +38,7 @@ use function count;
* @internal
* @coversNothing
*/
class ExportManagerTest extends KernelTestCase
final class ExportManagerTest extends KernelTestCase
{
use \Chill\MainBundle\Test\PrepareCenterTrait;
use \Chill\MainBundle\Test\PrepareScopeTrait;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Form\Type;
use Chill\MainBundle\Entity\GroupCenter;
@@ -19,7 +28,7 @@ use Symfony\Component\Form\Test\TypeTestCase;
* @internal
* @coversNothing
*/
class PickCenterTypeTest extends TypeTestCase
final class PickCenterTypeTest extends TypeTestCase
{
/**
* Test that a user which can reach multiple center

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Pagination;
use Chill\MainBundle\Pagination\Page;
@@ -19,7 +28,7 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
* @internal
* @coversNothing
*/
class PageTest extends KernelTestCase
final class PageTest extends KernelTestCase
{
protected $paginator;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Pagination;
use Chill\MainBundle\Pagination\Paginator;
@@ -20,7 +29,7 @@ use function count;
* @internal
* @coversNothing
*/
class PaginatorTest extends KernelTestCase
final class PaginatorTest extends KernelTestCase
{
protected $paginator;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Routing\Loader;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
@@ -17,14 +26,14 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class RouteLoaderTest extends KernelTestCase
final class RouteLoaderTest extends KernelTestCase
{
private $router;
public function setUp()
{
static::bootKernel();
$this->router = static::$kernel->getContainer()->get('router');
self::bootKernel();
$this->router = self::$kernel->getContainer()->get('router');
}
/**

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Search;
/**
@@ -15,7 +24,7 @@ namespace Chill\MainBundle\Tests\Search;
* @internal
* @coversNothing
*/
class AbstractSearchTest extends \PHPUnit\Framework\TestCase
final class AbstractSearchTest extends \PHPUnit\Framework\TestCase
{
/**
* @var \Chill\MainBundle\Search\AbstractSearch

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Search;
use Chill\MainBundle\Search\SearchApiQuery;
@@ -17,7 +26,7 @@ use function is_string;
* @internal
* @coversNothing
*/
class SearchApiQueryTest extends TestCase
final class SearchApiQueryTest extends TestCase
{
public function testBuildParams()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Test\Search;
use Chill\MainBundle\Search\SearchInterface;
@@ -17,7 +26,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class SearchProviderTest extends TestCase
final class SearchProviderTest extends TestCase
{
/**
* @var SearchProvider

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Search\Utils;
use Chill\MainBundle\Search\Utils\ExtractDateFromPattern;
@@ -18,7 +27,7 @@ use function array_map;
* @internal
* @coversNothing
*/
class ExtractDateFromPatternTest extends TestCase
final class ExtractDateFromPatternTest extends TestCase
{
public function provideSubjects()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Search\Utils;
use Chill\MainBundle\Search\Utils\ExtractPhonenumberFromPattern;
@@ -16,7 +25,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class ExtractPhonenumberFromPatternTest extends KernelTestCase
final class ExtractPhonenumberFromPatternTest extends KernelTestCase
{
public function provideData()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Security\Authorization;
use Chill\MainBundle\Entity\Center;
@@ -29,7 +38,7 @@ use function in_array;
* @internal
* @coversNothing
*/
class AuthorizationHelperTest extends KernelTestCase
final class AuthorizationHelperTest extends KernelTestCase
{
use PrepareCenterTrait;
use PrepareScopeTrait;
@@ -38,7 +47,7 @@ class AuthorizationHelperTest extends KernelTestCase
public function setUp()
{
static::bootKernel();
self::bootKernel();
}
public function dataProvider_getReachableCenters()
@@ -77,7 +86,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_1'),
null
)),
), true),
'center A should be available for userA, with role 1 ',
],
[
@@ -86,7 +95,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_2'),
null
)),
), true),
'center A should be available for userA, with role 2 ',
],
[
@@ -95,7 +104,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_2'),
null
)),
), true),
'center A should be available for userA, with role 2 ',
],
[
@@ -104,7 +113,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_1'),
null
)),
), true),
'center B should NOT be available for userA, with role 1 ',
],
// with scope
@@ -114,7 +123,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_1'),
$scopeB
)),
), true),
'center A should be available for userA, with role 1, scopeC ',
],
[
@@ -123,7 +132,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_2'),
$scopeC
)),
), true),
'center A should NOT be available for userA, with role 2, scopeA ',
],
[
@@ -132,7 +141,7 @@ class AuthorizationHelperTest extends KernelTestCase
$userA,
new Role('CHILL_ROLE_2'),
$scopeA
)),
), true),
'center B should be available for userA, with role 2, scopeA ',
],
];
@@ -195,7 +204,7 @@ class AuthorizationHelperTest extends KernelTestCase
public function testFindUsersReaching()
{
$centerA = static::$kernel->getContainer()
$centerA = self::$kernel->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository(Center::class)
->findOneByName('Center A');
@@ -254,7 +263,7 @@ class AuthorizationHelperTest extends KernelTestCase
$this->assertEquals(
$expectedResult,
in_array($testedScope, $reachableScopes),
in_array($testedScope, $reachableScopes, true),
$message
);
}
@@ -577,7 +586,7 @@ class AuthorizationHelperTest extends KernelTestCase
*/
private function getAuthorizationHelper()
{
return static::$container
return self::$container
->get('chill.main.security.authorization.helper');
}
}

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\PasswordRecover;
use Chill\MainBundle\Entity\User;
@@ -19,7 +28,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class TokenManagerTest extends KernelTestCase
final class TokenManagerTest extends KernelTestCase
{
protected $tokenManager;

View File

@@ -20,7 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class CenterResolverDispatcherTest extends KernelTestCase
final class CenterResolverDispatcherTest extends KernelTestCase
{
private CenterResolverDispatcherInterface $dispatcher;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Security\Resolver;
use Chill\MainBundle\Entity\HasScopeInterface;
@@ -19,7 +28,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class DefaultScopeResolverTest extends TestCase
final class DefaultScopeResolverTest extends TestCase
{
private DefaultScopeResolver $scopeResolver;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Security\Resolver;
use Chill\MainBundle\Entity\HasScopeInterface;
@@ -20,7 +29,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class ScopeResolverDispatcherTest extends TestCase
final class ScopeResolverDispatcherTest extends TestCase
{
private ScopeResolverDispatcher $scopeResolverDispatcher;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Serializer\Normalizer;
use Chill\MainBundle\Serializer\Normalizer\DateNormalizer;
@@ -24,7 +33,7 @@ use Symfony\Component\HttpFoundation\RequestStack;
* @internal
* @coversNothing
*/
class DateNormalizerTest extends KernelTestCase
final class DateNormalizerTest extends KernelTestCase
{
private Prophet $prophet;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Serializer\Normalizer;
use Chill\MainBundle\Entity\User;
@@ -19,7 +28,7 @@ use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
* @internal
* @coversNothing
*/
class DoctrineExistingEntityNormalizerTest extends KernelTestCase
final class DoctrineExistingEntityNormalizerTest extends KernelTestCase
{
protected DoctrineExistingEntityNormalizer $normalizer;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Services;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
@@ -18,7 +27,7 @@ use Symfony\Component\Routing\RouteCollection;
* @internal
* @coversNothing
*/
class MenuComposerTest extends KernelTestCase
final class MenuComposerTest extends KernelTestCase
{
/**
* @var \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader;
@@ -33,7 +42,7 @@ class MenuComposerTest extends KernelTestCase
public function setUp()
{
self::bootKernel(['environment' => 'test']);
$this->menuComposer = static::$container
$this->menuComposer = self::$container
->get('chill.main.menu_composer');
}

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Templating;
use Chill\MainBundle\Templating\ChillMarkdownRenderExtension;
@@ -20,7 +29,7 @@ use PHPUnit\Framework\TestCase;
* is safe.
* @coversNothing
*/
class ChillMarkdownRenderExtensionTest extends TestCase
final class ChillMarkdownRenderExtensionTest extends TestCase
{
private const SIMPLE_HTML = <<<'HTML'
<h1>test</h1>

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Templating\Entity;
use Chill\MainBundle\Entity\Address;
@@ -21,7 +30,7 @@ use Symfony\Component\Templating\EngineInterface;
* @internal
* @coversNothing
*/
class AddressRenderTest extends KernelTestCase
final class AddressRenderTest extends KernelTestCase
{
protected function setUp()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests;
use Symfony\Component\BrowserKit\Client;

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Util;
use Chill\MainBundle\Util\CountriesInfo;
@@ -18,7 +27,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class CountriesInfoTest extends TestCase
final class CountriesInfoTest extends TestCase
{
public function getGetContinentsCodes()
{

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Tests\Util;
use Chill\MainBundle\Util\DateRangeCovering;
@@ -19,7 +28,7 @@ use function usort;
* @internal
* @coversNothing
*/
class DateRangeCoveringTest extends TestCase
final class DateRangeCoveringTest extends TestCase
{
public function testCoveringWithMinCover1()
{

View File

@@ -7,6 +7,14 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) {
throw new \LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?');
}