PhpBench\Tests\Unit\Serializer\XmlDecoderTest::testDecoder PHP Метод

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

It should encode the suite to an XML document.
public testDecoder ( array $params, $expected )
$params array
    public function testDecoder(array $params, $expected)
    {
        $collection = $this->getSuiteCollection($params);
        $dom = $this->encode($collection);
        $decoder = new XmlDecoder();
        $collection = $decoder->decode($dom);
        $decodedDom = $this->encode($collection);
        $this->assertEquals($dom->dump(), $decodedDom->dump());
    }