public getRawArray ( string $path ) : mixed | ||
$path | string | A path to the node to get |
return | mixed | Array of matching data, or FALSE on failure |
public function getRawArray($path)
{
$data = $this->getRawData($path);
if (!is_array($data)) {
return false;
}
return $data;
}
/** * When the path points to a leaf, getRawArray() should return FALSE. * * @test */ public function getRawArrayAlwaysReturnsArrayOrFalse() { $result = $this->model->getRawArray('localeDisplayNames/localeDisplayPattern/localePattern'); $this->assertEquals(false, $result); }