render() public method

public render ( string $key, mixed $content = null, boolean $recursive = true, boolean $single = false ) : array
$key string The name of the key from which you wish to extract the value
$content mixed The array or Iterator that contains either the value or arrays of values
$recursive boolean If TRUE, attempts to extract the key from deep nested arrays
$single boolean If TRUE, returns only one value - always the first one - instead of an array of values
return array
 /**
  * @test
  * @dataProvider nestedStructures
  */
 public function recursivelyExtractKey($structure, $key, $expected)
 {
     $recursive = TRUE;
     $this->assertSame($expected, $this->fixture->render($key, $structure, $recursive));
 }