Skip to content

Commit

Permalink
Use system directory separator in path resolver test
Browse files Browse the repository at this point in the history
  • Loading branch information
guvra committed Feb 6, 2020
1 parent 9182e87 commit 4f4c6ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/Config/Resolver/PathResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ class PathResolverTest extends TestCase
public function testResolveRelativePath()
{
$relativePath = 'tests/unit/Resources/config/templates/test.yaml';
$relativePath = str_replace('/', DIRECTORY_SEPARATOR, $relativePath);

$resolver = $this->createPathResolver();
$resolvedPath = $resolver->resolve($relativePath);
$this->assertSame($this->getBasePath() . '/' . $relativePath, $resolvedPath);
$this->assertSame($this->getBasePath() . DIRECTORY_SEPARATOR . $relativePath, $resolvedPath);
}

/**
Expand All @@ -27,6 +28,7 @@ public function testResolveRelativePath()
public function testResolveAbsolutePath()
{
$absolutePath = $this->getResource('config/templates/test.yaml');
$absolutePath = str_replace('/', DIRECTORY_SEPARATOR, $absolutePath);

$resolver = $this->createPathResolver();
$resolvedPath = $resolver->resolve($absolutePath);
Expand Down

0 comments on commit 4f4c6ca

Please sign in to comment.