109 $processor1_stack = [];
111 ->method(
"beginComponent")
112 ->willReturnCallback(
function ($s1, $s2) use (&$processor1_stack) {
113 $processor1_stack[] =
"beginComponent";
114 $processor1_stack[] = $s1;
115 $processor1_stack[] = $s2;
118 ->method(
"endComponent")
119 ->willReturnCallback(
function ($s1, $s2) use (&$processor1_stack) {
120 $processor1_stack[] =
"endComponent";
121 $processor1_stack[] = $s1;
122 $processor1_stack[] = $s2;
126 ->willReturnCallback(
function ($s1, $s2) use (&$processor1_stack) {
127 $processor1_stack[] =
"beginTag";
128 $processor1_stack[] = $s1;
129 $processor1_stack[] = $s2;
133 ->willReturnCallback(
function ($s1) use (&$processor1_stack) {
134 $processor1_stack[] =
"endTag";
135 $processor1_stack[] = $s1;
138 $processor2_stack = [];
140 ->method(
"beginComponent")
141 ->willReturnCallback(
function ($s1, $s2) use (&$processor2_stack) {
142 $processor2_stack[] =
"beginComponent";
143 $processor2_stack[] = $s1;
144 $processor2_stack[] = $s2;
147 ->method(
"endComponent")
148 ->willReturnCallback(
function ($s1, $s2) use (&$processor2_stack) {
149 $processor2_stack[] =
"endComponent";
150 $processor2_stack[] = $s1;
151 $processor2_stack[] = $s2;
155 ->willReturnCallback(
function ($s1, $s2) use (&$processor2_stack) {
156 $processor2_stack[] =
"beginTag";
157 $processor2_stack[] = $s1;
158 $processor2_stack[] = $s2;
162 ->willReturnCallback(
function ($s1) use (&$processor2_stack) {
163 $processor2_stack[] =
"endTag";
164 $processor2_stack[] = $s1;
168 $this->reader->readComponentDefinitions();
173 $expected_processor_stack = [
178 "module", [
"a1" =>
"a1",
"a2" =>
"a2"],
194 self::$components[0][1],
195 self::$components[0][0],
197 self::$components[1][1],
198 self::$components[1][0],
204 self::$components[1][1],
205 self::$components[1][0],
207 $this->assertEquals($expected_processor_stack, $processor1_stack);
208 $this->assertEquals($expected_processor_stack, $processor2_stack);