Skip to content

Commit

Permalink
Merge pull request #49 from pact-foundation/dont-use-system-paths
Browse files Browse the repository at this point in the history
test: Replace system paths by made-up paths
  • Loading branch information
tienvx authored Apr 25, 2024
2 parents 8e62ac9 + 69dee7c commit 8901b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Integration/Invalid/InvalidUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected static function getId(): string
protected static function getExtraFile(): array
{
return [
'url' => '/etc/passwd',
'url' => '/path/to/system/file',
];
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Attribute/Validator/UrlValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public function getInvalidUrlTests(): array
{
return [
[''],
['C:\Programs\PHP\php.ini'],
['/var/www/project/uploads'],
['Z:\path\to\file.txt'],
['/path/to/any/directory'],
];
}

Expand Down

0 comments on commit 8901b37

Please sign in to comment.