Skip to content

Commit

Permalink
Fix Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cicnavi committed Nov 12, 2024
1 parent 986c113 commit f0d4dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Codebooks/WellKnownEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public function path(): string
return $this->value;
}

return self::Prefix->value . DIRECTORY_SEPARATOR . $this->value;
return self::Prefix->value . '/' . $this->value;
}

public function uriFor(string $entityId): string
{
return rtrim($entityId, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $this->path();
return rtrim($entityId, '/') . '/' . $this->path();
}
}
2 changes: 2 additions & 0 deletions tests/src/Algorithms/SignatureAlgorithmEnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
use Jose\Component\Signature\Algorithm\RS384;
use Jose\Component\Signature\Algorithm\RS512;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use PHPUnit\Framework\TestCase;
use SimpleSAML\OpenID\Algorithms\SignatureAlgorithmEnum;

#[CoversClass(SignatureAlgorithmEnum::class)]
class SignatureAlgorithmEnumTest extends TestCase
{
#[RequiresPhpExtension('sodium')]
public function testCanGetProperSignatureAlgorithmInstance(): void
{
$this->assertInstanceOf(
Expand Down

0 comments on commit f0d4dd3

Please sign in to comment.