You are here

function test34 in Coder 8.3.x

Same name and namespace in other branches
  1. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test34()

Yield should be a recognised return statement.

Return value

int Integer value.

File

tests/Drupal/Commenting/FunctionCommentUnitTest.inc, line 439
Some function comment tests.

Code

function test34($a, $b) {
  for ($i = 1; $i <= 3; $i++) {
    (yield $i);
  }
}