public function setUp()
 {
     // Load a program
     $this->file = realpath(__DIR__ . '/Fixture/require_program_test.php');
     $this->includedFile = realpath(__DIR__ . '/Fixture/basic_program_test.php');
     $this->program = loadGlassBoxProgram($this->file);
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->file = realpath(__DIR__ . '/../Fixture/taint_test_1.php');
     $this->file1 = realpath(__DIR__ . '/../Fixture/taint_statement_test.php');
     $this->file2 = realpath(__DIR__ . '/../Fixture/taint_test_if_else.php');
     $this->program = loadGlassBoxProgram($this->file);
     $this->program1 = loadGlassBoxProgram($this->file1);
     $this->program2 = loadGlassBoxProgram($this->file2);
 }
Esempio n. 3
0
 public function setUp()
 {
     // Load a program
     $this->file = realpath(__DIR__ . '/../Fixture/sanitisation_test_1.php');
     $this->program = loadGlassBoxProgram($this->file);
     $this->file1 = realpath(__DIR__ . '/../Fixture/sanitisation_test_2.php');
     $this->program1 = loadGlassBoxProgram($this->file1);
     $this->file2 = realpath(__DIR__ . '/../Fixture/sanitisation_test_3.php');
     $this->program2 = loadGlassBoxProgram($this->file2);
 }
Esempio n. 4
0
 public function setUp()
 {
     $file = realpath(__DIR__ . '/Fixture/environment_test.php');
     $this->program = loadGlassBoxProgram($file);
 }