PHP Class PhpBench\Tests\Unit\Serializer\XmlDecoderTest

Inheritance: extends XmlTestCase
Show file Open project: dantleech/phpbench

Public Methods

Method Description
testDecodeUnknownResultClass ( ) It should throw an exception when encountering a non-existing result class.
testDecodeUnknownResultKey ( ) It should throw an exception for a non-existing result key.
testDecoder ( array $params, $expected ) It should encode the suite to an XML document.
testInvalidAttribute ( ) It should throw an exception if an attribute name has no - prefix.

Private Methods

Method Description
encode ( SuiteCollection $collection )

Method Details

testDecodeUnknownResultClass() public method

It should throw an exception when encountering a non-existing result class.

testDecodeUnknownResultKey() public method

It should throw an exception for a non-existing result key.

testDecoder() public method

It should encode the suite to an XML document.
public testDecoder ( array $params, $expected )
$params array

testInvalidAttribute() public method

It should throw an exception if an attribute name has no - prefix.