예제 #1
0
파일: FileTest.php 프로젝트: mbcraft/piol
 function testFilenameMatches()
 {
     $f_txt = new File("/test/test_dir/content_dir/test_file.txt");
     $this->assertTrue($f_txt->filenameMatches("/.+file\\.txt/"), "Il filename non fa match col pattern!!");
     $f_plug_txt = new File("/test/test_dir/content_dir/ext_test.plug.txt");
     $this->assertTrue($f_plug_txt->filenameMatches("/.+t\\.p.+/"), "Il filename non fa match col pattern!!");
 }