diff --git a/tests/Iterators/UniqueFilterTest.php b/tests/Iterators/UniqueFilterTest.php index b4d429dce3d7094dc883e189b8a1a4473c0ed651..7c42f6186e7781cbd76e25b17fa36d96e5e6fdb2 100644 --- a/tests/Iterators/UniqueFilterTest.php +++ b/tests/Iterators/UniqueFilterTest.php @@ -1,9 +1,20 @@ <?php declare(strict_types=1); -/** +/* + * irstea/ng-model-generator-bundle generates Typescript interfaces for Angular using api-platform metadata. * Copyright (C) 2018 IRSTEA - * All rights reserved. - * @copyright 2018 IRSTEA - * @author guillaume.perreal + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) any + * later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License and the GNU + * Lesser General Public License along with this program. If not, see + * <https://www.gnu.org/licenses/>. */ namespace Irstea\NgModelGeneratorBundle\Tests\Iterators; @@ -12,7 +23,7 @@ use Irstea\NgModelGeneratorBundle\Iterators\UniqueFilter; use PHPUnit\Framework\TestCase; /** - * Class UniqueFilterTest + * Class UniqueFilterTest. */ class UniqueFilterTest extends TestCase { @@ -26,7 +37,8 @@ class UniqueFilterTest extends TestCase $this->tested = new UniqueFilter(); } - public function testKeepUniqueValues() { + public function testKeepUniqueValues() + { $input = [4, 5, null, new \stdClass(), new \stdClass()]; self::assertEquals($input, array_filter($input, $this->tested)); } @@ -41,7 +53,7 @@ class UniqueFilterTest extends TestCase self::assertEquals(count($expected), count($actual)); - foreach($expected as $i => $value) { + foreach ($expected as $i => $value) { self::assertSame($value, $actual[$i]); } }