Skip to content

Commit

Permalink
[Config] Prefixing FileExistenceResource::__toString() to avoid confl…
Browse files Browse the repository at this point in the history
…ict with FileResource
  • Loading branch information
weaverryan committed Nov 8, 2023
1 parent e84257a commit a88aafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -38,7 +38,7 @@ public function __construct(string $resource)

public function __toString(): string
{
return $this->resource;
return 'existence.'.$this->resource;
}

public function getResource(): string
Expand Down
Expand Up @@ -36,7 +36,7 @@ protected function tearDown(): void

public function testToString()
{
$this->assertSame($this->file, (string) $this->resource);
$this->assertSame('existence.'.$this->file, (string) $this->resource);
}

public function testGetResource()
Expand Down

0 comments on commit a88aafd

Please sign in to comment.