diff options
Diffstat (limited to 'tests/lib/App/PlatformRepositoryTest.php')
-rw-r--r-- | tests/lib/App/PlatformRepositoryTest.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/lib/App/PlatformRepositoryTest.php b/tests/lib/App/PlatformRepositoryTest.php index 51884b26e71..bc0ecb97c5a 100644 --- a/tests/lib/App/PlatformRepositoryTest.php +++ b/tests/lib/App/PlatformRepositoryTest.php @@ -1,29 +1,27 @@ <?php /** - * @author Thomas Müller - * @copyright 2014 Thomas Müller deepdiver@owncloud.com - * later. - * See the COPYING-README file. + * SPDX-FileCopyrightText: 2020-2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2014-2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace Test\App; -use OC; +use OC\App\PlatformRepository; class PlatformRepositoryTest extends \Test\TestCase { /** - * @dataProvider providesVersions * @param $expected * @param $input */ - public function testVersion($input, $expected) { - $pr = new OC\App\PlatformRepository(); + #[\PHPUnit\Framework\Attributes\DataProvider('providesVersions')] + public function testVersion($input, $expected): void { + $pr = new PlatformRepository(); $normalizedVersion = $pr->normalizeVersion($input); $this->assertEquals($expected, $normalizedVersion); } - public function providesVersions() { + public static function providesVersions(): array { return [ 'none' => ['1.0.0', '1.0.0.0'], 'none/2' => ['1.2.3.4', '1.2.3.4'], |