PhpBench\Tests\Unit\Serializer\XmlEncoderTest::testEncode PHP Метод

testEncode() публичный Метод

It should encode the suite to an XML document.
public testEncode ( array $params, $expected )
$params array
    public function testEncode(array $params, $expected)
    {
        $expected = str_replace('PHPBENCH_VERSION', PhpBench::VERSION, $expected);
        $collection = $this->getSuiteCollection($params);
        $xmlEncoder = new XmlEncoder();
        $dom = $xmlEncoder->encode($collection);
        $this->assertInstanceOf('PhpBench\\Dom\\Document', $dom);
        $this->assertEquals($expected, $dom->dump());
    }
XmlEncoderTest