public function testPrettyParams()
{
$dom = $this->generate(TestUtil::createCollection([['parameters' => ['foo' => 'bar', 'array' => ['one', 'two'], 'assoc_array' => ['one' => 'two', 'three' => 'four']]]]), ['pretty_params' => true]);
$value = null;
foreach ($dom->xpath()->query('//group[@name="body"]/row[1]/cell[@name="params"]') as $cellEl) {
$value = $cellEl->nodeValue;
}
$this->assertEquals(<<<'EOT'
{
"foo": "bar",
"array": [
"one",
"two"
],
"assoc_array": {
"one": "two",
"three": "four"
}
}
EOT
, $value);
}