0) $command .= ' -m ' . implode(',', $modules); if ($base) $command .= ' -b ' . $base; $command .= ' ' . implode(' ', $files); return shell_exec($command); } public function testModuleLint() { $result = $this->run_scanner( array('modules' => 'lint'), 'samples/lint_failure.php' ); $this->assertEquals(file_get_contents('samples/lint_failure.txt'), $result); } public function testModulePatterns() { $result = $this->run_scanner( array('modules' => 'pattern'), 'samples/patterns.php' ); $this->assertEquals(file_get_contents('samples/patterns.txt'), $result); } } ?>