Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
php-phpdocumentor-reflection-common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian PHP Team
PEAR
php-phpdocumentor-reflection-common
Commits
299de85d
Commit
299de85d
authored
5 months ago
by
David Prévot
Browse files
Options
Downloads
Patches
Plain Diff
Modernize PHPUnit syntax
parent
f0a76662
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/0002-Modernize-PHPUnit-syntax.patch
+36
-0
36 additions, 0 deletions
debian/patches/0002-Modernize-PHPUnit-syntax.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
37 additions
and
0 deletions
debian/patches/0002-Modernize-PHPUnit-syntax.patch
0 → 100644
+
36
−
0
View file @
299de85d
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Mon, 17 Feb 2025 18:25:15 +0100
Subject: Modernize PHPUnit syntax
---
tests/unit/FqsenTest.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/unit/FqsenTest.php b/tests/unit/FqsenTest.php
index 5fd5606..228e6c2 100644
--- a/tests/unit/FqsenTest.php
+++ b/tests/unit/FqsenTest.php
@@ -14,6 +14,7 @@
declare(strict_types=1);
namespace phpDocumentor\Reflection;
use InvalidArgumentException;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
/**
@@ -25,6 +26,7 @@
class FqsenTest extends TestCase
* @covers ::__construct
* @dataProvider validFqsenProvider
*/
+ #[DataProvider('validFqsenProvider')]
public function testValidFormats(string $fqsen, string $name) : void
{
$instance = new Fqsen($fqsen);
@@ -58,6 +60,7 @@
class FqsenTest extends TestCase
* @covers ::__construct
* @dataProvider invalidFqsenProvider
*/
+ #[DataProvider('invalidFqsenProvider')]
public function testInValidFormats(string $fqsen) : void
{
$this->expectException(InvalidArgumentException::class);
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
299de85d
0001-Make-provider-classes-static-PHPUnit-11-fix.patch
0001-Make-provider-classes-static-PHPUnit-11-fix.patch
0002-Modernize-PHPUnit-syntax.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment