diff --git a/tests/coverage/foreach.inc b/tests/coverage/foreach.inc new file mode 100644 index 000000000..e0143f64d --- /dev/null +++ b/tests/coverage/foreach.inc @@ -0,0 +1,8 @@ + diff --git a/tests/coverage/foreach.phpt b/tests/coverage/foreach.phpt new file mode 100644 index 000000000..de6cdc9e3 --- /dev/null +++ b/tests/coverage/foreach.phpt @@ -0,0 +1,68 @@ +--TEST-- +Test with Code Coverage with path and branch checking +--SKIPIF-- + +--INI-- +xdebug.mode=coverage +xdebug.trace_options=0 +xdebug.collect_return=0 +xdebug.collect_assignments=0 +xdebug.auto_profile=0 +xdebug.dump_globals=0 +xdebug.trace_format=0 +--FILE-- + +--EXPECT-- +welsh +gaelic +english +showLanguages +- branches + - 00; OP: 00-02; line: 02-04 HIT; out1: 03 HIT; out2: 09 X + - 03; OP: 03-03; line: 04-04 HIT; out1: 04 HIT; out2: 09 HIT + - 04; OP: 04-08; line: 05-04 HIT; out1: 03 HIT + - 09; OP: 09-11; line: 04-07 HIT; out1: EX X +- paths + - 0 3 4 3 9: HIT + - 0 3 9: HIT + - 0 9: X + +showLanguages +- branches + - 00; OP: 00-02; line: 02-04 HIT; out1: 03 X ; out2: 09 HIT + - 03; OP: 03-03; line: 04-04 X ; out1: 04 X ; out2: 09 X + - 04; OP: 04-08; line: 05-04 X ; out1: 03 X + - 09; OP: 09-11; line: 04-07 HIT; out1: EX X +- paths + - 0 3 4 3 9: X + - 0 3 9: X + - 0 9: HIT