Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn-se committed Feb 2, 2024
1 parent 25bedd3 commit de43725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.0",
"phpunit/phpunit": "^9.0 | ^10.0| ^11.0",
"phpunit/phpunit": "^9.0 | ^10.0 | ^11.0",
"phrity/net-mock": "1.3",
"squizlabs/php_codesniffer": "^3.5"
}
Expand Down
4 changes: 4 additions & 0 deletions tests/suites/http/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use BadMethodCallException;
use Generator;
use InvalidArgumentException;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Phrity\Net\StreamFactory;
use Phrity\Net\Uri;
Expand Down Expand Up @@ -226,6 +227,7 @@ public function testHeaderNameError(): void
/**
* @dataProvider provideInvalidHeaderValues
*/
#[DataProvider('provideInvalidHeaderValues')]
public function testHeaderValueInvalidVariants(mixed $value): void
{
$request = new Request();
Expand All @@ -245,9 +247,11 @@ public static function provideInvalidHeaderValues(): Generator
yield [[]];
}


/**
* @dataProvider provideValidHeaderValues
*/
#[DataProvider('provideValidHeaderValues')]
public function testHeaderValueValidVariants(mixed $value, array $expected): void
{
$request = new Request();
Expand Down

0 comments on commit de43725

Please sign in to comment.