19 declare(strict_types=1);
38 protected function setUp(): void
40 $this->expected_test_gui_structure = require __DIR__ .
'/../Data/Structure/test_ctrl_structure.php';
45 $class_map = require __DIR__ .
'/../Data/ClassMaps/valid_class_map.php';
51 $this->assertFalse($reader->isExecuted());
53 $this->expected_test_gui_structure,
54 $reader->readStructure()
57 $this->assertTrue($reader->isExecuted());
62 $class_map = require __DIR__ .
'/../Data/ClassMaps/invalid_class_map.php';
68 $this->assertFalse($reader->isExecuted());
69 $this->assertEmpty($reader->readStructure());
70 $this->assertTrue($reader->isExecuted());
80 $this->assertFalse($reader->isExecuted());
81 $this->assertEmpty($reader->readStructure());
82 $this->assertTrue($reader->isExecuted());
Class ilCtrlStructureCidGenerator.
array $expected_test_gui_structure
Class ilCtrlStructureReader is responsible for reading ilCtrl's control structure.
Class ilCtrlStructureReaderTest.
testStructureReaderWithEmptyArrayIterator()
Class ilCtrlArrayIterator.
testStructureReaderWithInvalidArrayIterator()
testStructureReaderWithValidArrayIterator()