Skip to content

Commit 3e3d81b

Browse files
committed
chore: update to newest version of PHPUnit
I isolated the dependency into a separated vendor folder to prevent dependency conflict between version of development and production. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 525ffdc commit 3e3d81b

4 files changed

Lines changed: 1749 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
.phpunit.result.cache
33
vendor
4+
/vendor-bin/**/vendor/

tests/JSignPDFTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function exec(string $command, array &$output = null, int &$return_var = null) {
1616
use Exception;
1717
use Jeidison\JSignPDF\Sign\JSignService;
1818
use Jeidison\JSignPDF\Tests\Builder\JSignParamBuilder;
19+
use PHPUnit\Framework\Attributes\DataProvider;
1920
use PHPUnit\Framework\TestCase;
2021

2122
/**
@@ -75,10 +76,8 @@ public function testSignSuccess()
7576
$this->assertNotNull($fileSigned);
7677
}
7778

78-
/**
79-
* @dataProvider providerSignUsingDifferentPasswords
80-
*/
81-
public function testSignUsingDifferentPasswords(string $password)
79+
#[DataProvider('providerSignUsingDifferentPasswords')]
80+
public function testSignUsingDifferentPasswords(string $password): void
8281
{
8382
global $mockExec;
8483
if (!class_exists('JSignPDF\JSignPDFBin\JavaCommandService')) {
@@ -94,7 +93,7 @@ public function testSignUsingDifferentPasswords(string $password)
9493
$this->assertNotNull($fileSigned);
9594
}
9695

97-
public function providerSignUsingDifferentPasswords()
96+
public static function providerSignUsingDifferentPasswords(): array
9897
{
9998
return [
10099
["with ' quote"],

vendor-bin/phpunit/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"phpunit/phpunit": "^11.5"
4+
}
5+
}

0 commit comments

Comments
 (0)