public function provideEncode()
{
return [[['groups' => ['group1', 'group2'], 'params' => ['foo' => 'bar', 'bar' => ['baz' => 'bon']]], <<<'EOT'
<?xml version="1.0"?>
<phpbench version="PHPBENCH_VERSION">
<suite context="test" date="2015-01-01 00:00:00" config-path="/path/to/config.json" uuid="1234">
<env>
<info1 foo="bar"/>
</env>
<benchmark class="Bench1">
<subject name="subjectName">
<group name="group1"/>
<group name="group2"/>
<variant sleep="5" output-time-unit="milliseconds" output-time-precision="7" output-mode="throughput" revs="100" warmup="50" retry-threshold="10">
<parameter name="foo" value="bar"/>
<parameter name="bar" type="collection">
<parameter name="baz" value="bon"/>
</parameter>
<iteration time-net="10" mem-peak="100" mem-real="110" mem-final="109" comp-z-value="0" comp-deviation="0"/>
<stats max="0.1" mean="0.1" min="0.1" mode="0.1" rstdev="0" stdev="0" sum="0.1" variance="0"/>
</variant>
</subject>
</benchmark>
<result key="time" class="PhpBench\Model\Result\TimeResult"/>
<result key="mem" class="PhpBench\Model\Result\MemoryResult"/>
<result key="comp" class="PhpBench\Model\Result\ComputedResult"/>
</suite>
</phpbench>
EOT
], [['error' => true], <<<'EOT'
<?xml version="1.0"?>
<phpbench version="PHPBENCH_VERSION">
<suite context="test" date="2015-01-01 00:00:00" config-path="/path/to/config.json" uuid="1234">
<env>
<info1 foo="bar"/>
</env>
<benchmark class="Bench1">
<subject name="subjectName">
<variant sleep="5" output-time-unit="milliseconds" output-time-precision="7" output-mode="throughput" revs="100" warmup="50" retry-threshold="10">
<errors>
<error exception-class="ErrorClass" code="0" file="1" line="2">This is an error</error>
</errors>
</variant>
</subject>
</benchmark>
</suite>
</phpbench>
EOT
]];
}