示例#1
0
 function testPath()
 {
     $this->assertEqual(lmbFs::path(array('test')), 'test');
     $this->assertEqual(lmbFs::path(array('test', 'wow')), 'test' . lmbFs::separator() . 'wow');
     $this->assertEqual(lmbFs::path(array('test', 'wow/')), 'test' . lmbFs::separator() . 'wow');
     $this->assertEqual(lmbFs::path(array('test'), true), 'test' . lmbFs::separator());
     $this->assertEqual(lmbFs::path(array('test', 'wow'), true), 'test' . lmbFs::separator() . 'wow' . lmbFs::separator());
 }