Пример #1
0
 /**
  * Function to test scanning of files.
  */
 public function testScanning()
 {
     //start the scan.
     $errors = Scanner::scanDir(__DIR__ . "/../../../framework/control/");
     //print the results.
     echo "\nNormal Display: \n--------------------------\n";
     Scanner::displayErrors($errors, "Use of blacklisted keywords found!");
     echo "\n\n\n";
     echo "\nGCC Style Display: \n--------------------------\n";
     Scanner::displayGCCStyleOutput($errors, "Use of blacklisted keywords found!");
     echo "\n";
     //You can see the results in your screen.
 }