1
0
Fork 0

Add a couple test cases

pull/1128/head
Jordi Boggiano 2012-09-18 18:32:24 +02:00
parent f377e9ca87
commit a9195eb05f
1 changed files with 9 additions and 0 deletions

View File

@ -85,5 +85,14 @@ class CompletePackageTest extends TestCase
$package->setTargetDir('../..'); $package->setTargetDir('../..');
$this->assertEquals('', $package->getTargetDir()); $this->assertEquals('', $package->getTargetDir());
$package->setTargetDir('..');
$this->assertEquals('', $package->getTargetDir());
$package->setTargetDir('/..');
$this->assertEquals('', $package->getTargetDir());
$package->setTargetDir('/foo/..');
$this->assertEquals('foo/', $package->getTargetDir());
} }
} }