public function evaluateThrowsExceptionIfSpecifiedPathPointsToAPrivateResource()
{
$this->mockTsRuntime->expects($this->any())->method('evaluate')->will($this->returnCallback(function ($evaluatePath, $that) {
$relativePath = str_replace('resourceUri/test/', '', $evaluatePath);
switch ($relativePath) {
case 'path':
return 'resource://Some.Package/Private/SomeResource';
}
return null;
}));
$this->resourceUriImplementation->evaluate();
}