24 require_once(dirname(__FILE__) .
'/../common-dir.php');
32 protected function setUp()
51 print
"Starting unit test for common-dir.php\n";
52 print
"test function Isdir()\n";
54 $result =
Isdir($mode);
55 $this->assertEquals(
true, $result);
57 $result =
Isdir($mode);
58 $this->assertEquals(
false, $result);
59 print
"test function Isartifact()\n";
62 $this->assertEquals(
false, $result);
65 $this->assertEquals(
true, $result);
66 print
"test function Iscontainer()\n";
69 $this->assertEquals(
true, $result);
72 $this->assertEquals(
true, $result);
74 print
"test function DirMode2String()\n";
76 $this->assertEquals(
"a-d-----S---", $result);
84 $this->assertEquals(
GetFileExt(
'autodestroy.exe.bak'),
'bak');
94 $this->assertEquals(
"a-d-----S---", $result);
96 $this->assertEquals(
"---rw-r--r--", $result);
DirMode2String($Mode)
Convert a file mode to string values.
test_GetFileExt()
test of ExtensionGetter
test_DirMode2String()
test for DirMode2String
test_Is()
test for Isdir Isartifact Iscontainer
GetFileExt($fname)
Get File Extension (text after last period)