Add a couple test cases
parent
f377e9ca87
commit
a9195eb05f
|
@ -85,5 +85,14 @@ class CompletePackageTest extends TestCase
|
|||
|
||||
$package->setTargetDir('../..');
|
||||
$this->assertEquals('', $package->getTargetDir());
|
||||
|
||||
$package->setTargetDir('..');
|
||||
$this->assertEquals('', $package->getTargetDir());
|
||||
|
||||
$package->setTargetDir('/..');
|
||||
$this->assertEquals('', $package->getTargetDir());
|
||||
|
||||
$package->setTargetDir('/foo/..');
|
||||
$this->assertEquals('foo/', $package->getTargetDir());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue