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

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

It should throw an exception if an attribute name has no - prefix.
    public function testInvalidAttribute()
    {
        $dom = new Document(1.0);
        $dom->loadXml(<<<EOT
<phpbench>
  <suite>
      <benchmark class="\\PhpBench\\Micro\\Math\\KdeBench">
      <subject name="benchKde">
        <variant>
          <iteration foo="12" />
        </variant>
      </subject>
      </benchmark>
  </suite>
</phpbench>
EOT
);
        $decoder = new XmlDecoder();
        $collection = $decoder->decode($dom);
    }