Esempio n. 1
0
 public function testGetPhpFilesOnlyTests()
 {
     $classFiles = $this->model->getPhpFiles(Files::INCLUDE_TESTS);
     foreach ($this->moduleTests as $moduleTest) {
         $classFiles = preg_grep($moduleTest, $classFiles, PREG_GREP_INVERT);
     }
     foreach ($this->libTests as $libraryTest) {
         $classFiles = preg_grep($libraryTest, $classFiles, PREG_GREP_INVERT);
     }
     foreach ($this->frameworkTests as $frameworkTest) {
         $classFiles = preg_grep($frameworkTest, $classFiles, PREG_GREP_INVERT);
     }
     $classFiles = preg_grep($this->rootTestsDir, $classFiles, PREG_GREP_INVERT);
     $classFiles = preg_grep($this->setupTestsDir, $classFiles, PREG_GREP_INVERT);
     $this->assertEmpty($classFiles);
 }
Esempio n. 2
0
 public function testGetPhpFilesExcludeTests()
 {
     $this->assertNoTestDirs($this->model->getPhpFiles(true, true, true, false));
 }