],
'input' => 'config',
'output' => dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'config',
+ ],
+ 'no_overwrite_if_invalid' => [
+ 'server' => [
+ 'DOCUMENT_ROOT' => '/nopopop',
+ 'PWD' => dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'config',
+ ],
+ 'input' => '/noatgawe22fafa',
+ 'output' => dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'config',
]
];
}
*/
public function testDetermineBasePath(array $server, $input, $output)
{
- $this->assertEquals($output, BasePath::create($input, $server));
+ $basepath = new BasePath($input, $server);
+ $this->assertEquals($output, $basepath->getPath());
}
/**
*/
public function testFailedBasePath()
{
- BasePath::create('/now23452sgfgas', []);
+ $basepath = new BasePath('/now23452sgfgas', []);
+ $basepath->getPath();
}
}