public function testCheckIfaPathIsAbsolute() { $this->assertTrue(FileUtils::isAbsolute('C://php/bin')); $this->assertTrue(FileUtils::isAbsolute('/usr/local/php/bin')); $this->assertFalse(FileUtils::isAbsolute('../php/bin')); $this->assertFalse(FileUtils::isAbsolute('bin')); }
/** * @covers MarketMeSuite\Phranken\Util\FileUtils::isAbsolute */ public function testIsAbsolute() { $this->assertSame(true, FileUtils::isAbsolute($this->absolutePath), 'function should return true for absolute paths'); $this->assertSame(false, FileUtils::isAbsolute($this->relativePath), 'function should return false for relative paths'); }