( array_loop )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( array_foreach ) | for item in items | foreach ($items as $item) | - | - | - | - | for (string& item: items) | - | - |
| ( array_foreach_with_index ) | for i, v in enumerate(items) | foreach ($items as $index => $item) | - | - | - | - | - | - | - |
| ( array_for_c_style ) | → | for ($i = 0; $i < count($items); $i++) | - | - | - | - | - | - | - |
| ( array_for_in ) | for i in range(n) | → | - | - | - | - | - | - | - |
| ( loop_multiple_items_together ) | use zip | → | - | - | - | - | - | - | - |
| ( get_chunks_by_n_count ) | items[i:i+n] for .. | array_chunk($items, $n) | - | - | - | - | - | - | - |