From faad1b9d33d0f64a534cce2a8f1f8ae1cfc31ed1 Mon Sep 17 00:00:00 2001 From: fab2s Date: Tue, 3 Jan 2023 23:04:42 +0100 Subject: [PATCH] Bumb php version --- .github/workflows/ci.yml | 25 +++++- README.md | 2 +- composer.json | 4 +- tests/FlowInterruptTest.php | 170 ++++++++++++++++++------------------ tests/NodeTest.php | 6 +- tests/TestCase.php | 6 +- 6 files changed, 117 insertions(+), 96 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96b03c7..e8151cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,21 +6,27 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] - dispatcher-versions: ['3.4.*', '4.0.*', '4.1.*', '4.2.*', '4.3.*', '4.4.*', '5.0.*', '5.1.*', '5.2.*', '5.3.*', '5.4.*', '6.0.*', '6.1.*'] + php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + dispatcher-versions: ['3.4.*', '4.0.*', '4.1.*', '4.2.*', '4.3.*', '4.4.*', '5.0.*', '5.1.*', '5.2.*', '5.3.*', '5.4.*', '6.0.*', '6.1.*', '6.2.*'] exclude: - php-versions: 7.2 dispatcher-versions: 6.0.* - php-versions: 7.2 dispatcher-versions: 6.1.* + - php-versions: 7.2 + dispatcher-versions: 6.2.* - php-versions: 7.3 dispatcher-versions: 6.0.* - php-versions: 7.3 dispatcher-versions: 6.1.* + - php-versions: 7.3 + dispatcher-versions: 6.2.* - php-versions: 7.4 dispatcher-versions: 6.0.* - php-versions: 7.4 dispatcher-versions: 6.1.* + - php-versions: 7.4 + dispatcher-versions: 6.2.* - php-versions: 8.0 dispatcher-versions: 3.4.* - php-versions: 8.0 @@ -33,6 +39,8 @@ jobs: dispatcher-versions: 4.3.* - php-versions: 8.0 dispatcher-versions: 6.1.* + - php-versions: 8.0 + dispatcher-versions: 6.2.* - php-versions: 8.1 dispatcher-versions: 3.4.* - php-versions: 8.1 @@ -43,6 +51,16 @@ jobs: dispatcher-versions: 4.2.* - php-versions: 8.1 dispatcher-versions: 4.3.* + - php-versions: 8.2 + dispatcher-versions: 3.4.* + - php-versions: 8.2 + dispatcher-versions: 4.0.* + - php-versions: 8.2 + dispatcher-versions: 4.1.* + - php-versions: 8.2 + dispatcher-versions: 4.2.* + - php-versions: 8.2 + dispatcher-versions: 4.3.* steps: - name: Checkout @@ -65,6 +83,9 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-composer- + - name: Remove php-cs-fixer dependency + run: composer remove "friendsofphp/php-cs-fixer" --dev --no-update + - name: Remove composer.lock run: rm -f composer.lock diff --git a/README.md b/README.md index d2e5cb6..7d5596d 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ $result = $nodalFlow->addPayload(('SomeClass::someTraversableMethod', true, true ## Requirements -`NodalFlow` is tested against php 7.2, 7.3 and 7.4 8.0 and 8.1 +`NodalFlow` is tested against php 7.2, 7.3 and 7.4 8.0, 8.1 and 8.2 ## Contributing diff --git a/composer.json b/composer.json index 511aefd..61ddd0c 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ ], "require" : { "php": "^7.2|^8.0", - "fab2s/context-exception": "^2.0", + "fab2s/context-exception": "^2.0|^3.0", "fab2s/souuid": "^1.0", "symfony/contracts": "^1.1|^2.0|^3.0" }, @@ -47,6 +47,6 @@ "post-install-cmd": [ "rm -f .*.cache" ], - "fix": "php-cs-fixer fix --config=./.php-cs-fixer.dist.php -vvv" + "fix": "@php php-cs-fixer fix --config=./.php-cs-fixer.dist.php -vvv" } } diff --git a/tests/FlowInterruptTest.php b/tests/FlowInterruptTest.php index 95a0469..b414f71 100644 --- a/tests/FlowInterruptTest.php +++ b/tests/FlowInterruptTest.php @@ -192,19 +192,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 4, 'num_iterate' => 0, 'num_break' => 0, @@ -229,7 +229,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -241,7 +241,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 9, 'num_iterate' => 0, 'num_break' => 0, @@ -270,7 +270,7 @@ public function interruptProvider() ->add($branchNode1) ->add($noOpNode4), 'expected' => [ - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -288,19 +288,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 4, 'num_iterate' => 0, 'num_break' => 0, @@ -308,7 +308,7 @@ public function interruptProvider() ], ], ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -337,7 +337,7 @@ public function interruptProvider() ->add($branchNode1) ->add($noOpNode4), 'expected' => [ - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -355,7 +355,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -367,7 +367,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 9, 'num_iterate' => 0, 'num_break' => 0, @@ -375,7 +375,7 @@ public function interruptProvider() ], ], ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -408,7 +408,7 @@ public function interruptProvider() ->add($branchNode1) ->add($noOpNode5), 'expected' => [ - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -426,7 +426,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -438,19 +438,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 95, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 95, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 94, 'num_iterate' => 0, 'num_break' => 0, @@ -458,7 +458,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -491,7 +491,7 @@ public function interruptProvider() ->add($branchNode1) ->add($noOpNode5), 'expected' => [ - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -509,7 +509,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -521,7 +521,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 100, 'num_iterate' => 0, 'num_break' => 0, @@ -533,7 +533,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 99, 'num_iterate' => 0, 'num_break' => 0, @@ -541,7 +541,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -574,7 +574,7 @@ public function interruptProvider() ->add($branchNode1) ->add($noOpNode5), 'expected' => [ - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -592,7 +592,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -604,19 +604,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 4, 'num_iterate' => 0, 'num_break' => 0, @@ -624,7 +624,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -657,7 +657,7 @@ public function interruptProvider() ->add($branchNode1) ->add($noOpNode5), 'expected' => [ - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -675,7 +675,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -687,7 +687,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 95, 'num_iterate' => 0, 'num_break' => 0, @@ -699,7 +699,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 94, 'num_iterate' => 0, 'num_break' => 0, @@ -707,7 +707,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -743,7 +743,7 @@ public function interruptProvider() $testCases['flow9'] = [ 'flow' => $rootFlow, 'expected' => [ - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -761,7 +761,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -773,19 +773,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 4, 'num_iterate' => 0, 'num_break' => 0, @@ -793,7 +793,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 0, 'num_iterate' => 0, 'num_break' => 0, @@ -829,7 +829,7 @@ public function interruptProvider() $testCases['flow10'] = [ 'flow' => $rootFlow, 'expected' => [ - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -847,7 +847,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -859,7 +859,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 0, @@ -871,7 +871,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 4, 'num_iterate' => 0, 'num_break' => 0, @@ -879,7 +879,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 0, 'num_iterate' => 0, 'num_break' => 0, @@ -927,7 +927,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode6->getId() => [ + $noOpNode6->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -944,13 +944,13 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 91, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $branchNode1->getId() => [ + $branchNode1->getId() => [ 'num_exec' => 91, 'num_iterate' => 0, 'num_break' => 1, @@ -962,7 +962,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 901, 'num_iterate' => 0, 'num_break' => 0, @@ -974,19 +974,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 9005, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 9005, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 9004, 'num_iterate' => 0, 'num_break' => 0, @@ -994,7 +994,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 90, 'num_iterate' => 0, 'num_break' => 0, @@ -1042,7 +1042,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode6->getId() => [ + $noOpNode6->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -1059,13 +1059,13 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 100, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $branchNode1->getId() => [ + $branchNode1->getId() => [ 'num_exec' => 100, 'num_iterate' => 0, 'num_break' => 0, @@ -1077,7 +1077,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 991, 'num_iterate' => 0, 'num_break' => 0, @@ -1089,7 +1089,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 9905, 'num_iterate' => 0, 'num_break' => 0, @@ -1101,7 +1101,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 9904, 'num_iterate' => 0, 'num_break' => 0, @@ -1109,7 +1109,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 99, 'num_iterate' => 0, 'num_break' => 0, @@ -1157,7 +1157,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode6->getId() => [ + $noOpNode6->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -1169,13 +1169,13 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $branchNode1->getId() => [ + $branchNode1->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 1, @@ -1187,7 +1187,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 1, 'num_iterate' => 0, 'num_break' => 0, @@ -1199,19 +1199,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 5, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 4, 'num_iterate' => 0, 'num_break' => 0, @@ -1219,7 +1219,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 0, 'num_iterate' => 0, 'num_break' => 0, @@ -1267,7 +1267,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode6->getId() => [ + $noOpNode6->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -1279,13 +1279,13 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 91, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $branchNode1->getId() => [ + $branchNode1->getId() => [ 'num_exec' => 91, 'num_iterate' => 0, 'num_break' => 0, @@ -1297,7 +1297,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 901, 'num_iterate' => 0, 'num_break' => 0, @@ -1309,7 +1309,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 9005, 'num_iterate' => 0, 'num_break' => 0, @@ -1321,7 +1321,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 1, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 9004, 'num_iterate' => 0, 'num_break' => 0, @@ -1329,7 +1329,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 90, 'num_iterate' => 0, 'num_break' => 0, @@ -1377,7 +1377,7 @@ public function interruptProvider() 'num_break' => 0, 'num_continue' => 0, ], - $noOpNode6->getId() => [ + $noOpNode6->getId() => [ 'num_exec' => 10, 'num_iterate' => 0, 'num_break' => 0, @@ -1389,13 +1389,13 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode4->getId() => [ + $noOpNode4->getId() => [ 'num_exec' => 91, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $branchNode1->getId() => [ + $branchNode1->getId() => [ 'num_exec' => 91, 'num_iterate' => 0, 'num_break' => 1, @@ -1407,7 +1407,7 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode1->getId() => [ + $noOpNode1->getId() => [ 'num_exec' => 901, 'num_iterate' => 0, 'num_break' => 0, @@ -1419,19 +1419,19 @@ public function interruptProvider() 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode2->getId() => [ + $noOpNode2->getId() => [ 'num_exec' => 9005, 'num_iterate' => 0, 'num_break' => 0, 'num_continue' => 0, ], - $breakAt5Node1->getId() => [ + $breakAt5Node1->getId() => [ 'num_exec' => 9005, 'num_iterate' => 0, 'num_break' => 1, 'num_continue' => 0, ], - $noOpNode3->getId() => [ + $noOpNode3->getId() => [ 'num_exec' => 9004, 'num_iterate' => 0, 'num_break' => 0, @@ -1439,7 +1439,7 @@ public function interruptProvider() ], ], ], - $noOpNode5->getId() => [ + $noOpNode5->getId() => [ 'num_exec' => 90, 'num_iterate' => 0, 'num_break' => 0, diff --git a/tests/NodeTest.php b/tests/NodeTest.php index fc03692..55c7245 100644 --- a/tests/NodeTest.php +++ b/tests/NodeTest.php @@ -40,7 +40,7 @@ public function nodeProvider() 'payload' => $lambda, ], [ - 'payload' => function () { + 'payload' => function () { return 42; }, // forcing these two will bypass comboing @@ -51,7 +51,7 @@ public function nodeProvider() }, ], [ - 'payload' => function () { + 'payload' => function () { for ($i = 1; $i < 6; ++$i) { yield $i; } @@ -62,7 +62,7 @@ public function nodeProvider() ], $closure, [ - 'payload' => function () use ($use) { + 'payload' => function () use ($use) { return $use; }, 'isAReturningVal' => true, diff --git a/tests/TestCase.php b/tests/TestCase.php index 1a76185..a3fe9a2 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -261,17 +261,17 @@ public function flowCasesProvider() public function getTestNodes() { $testNodes = [ - 'traversableInstance' => [ + 'traversableInstance' => [ 'nodeName' => 'CallableNode', 'payloadGenerator' => 'getTraversableInstance', 'isATraversable' => true, ], - 'execInstance' => [ + 'execInstance' => [ 'nodeName' => 'CallableNode', 'payloadGenerator' => 'getExecInstance', 'isATraversable' => false, ], - 'execClosure' => [ + 'execClosure' => [ 'nodeName' => 'CallableNode', 'payload' => $this->getExecClosure(true), 'isATraversable' => false,