[Config] Fix DirectoryResourceTest for symlinks
This commit is contained in:
parent
e33c694088
commit
56f74eb6c8
@ -53,7 +53,7 @@ class DirectoryResourceTest extends \PHPUnit_Framework_TestCase
|
||||
public function testGetResource()
|
||||
{
|
||||
$resource = new DirectoryResource($this->directory);
|
||||
$this->assertSame($this->directory, $resource->getResource(), '->getResource() returns the path to the resource');
|
||||
$this->assertSame(realpath($this->directory), $resource->getResource(), '->getResource() returns the path to the resource');
|
||||
}
|
||||
|
||||
public function testGetPattern()
|
||||
@ -166,7 +166,7 @@ class DirectoryResourceTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$unserialized = unserialize(serialize($resource));
|
||||
|
||||
$this->assertSame($this->directory, $resource->getResource());
|
||||
$this->assertSame(realpath($this->directory), $resource->getResource());
|
||||
$this->assertSame('/\.(foo|xml)$/', $resource->getPattern());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user