2
我有如PHP类:以纯文本形式生成某些PHP类的所有公共函数?
class test {
public function newTest(){
$this->bigTest();
$this->smallTest();
}
private function bigTest(){
//Big Test Here
}
private function smallTest(){
//Small Test Here
}
public function scoreTest(){
//Scoring code here;
}
}
现在,有越来越级测试的功能,如下面的纯文本文件如像test_functions.txt或任何
test/newTest
test/bigTest
test/smallTest
test/scoreTest
感谢的人。我正在计划生成所有在不同文件夹中存在的类丢失的公共功能,比如使用一个php创建100个类。文件夹结构:test/controller/test.php。 – user3145348