/**
* Attributes decoding test
*/
public function testDecodeAttributes()
{
$decoder = new Decoder();
$attributes = $decoder->decode(array('"Hello"', array('name' => 'href', 'value' => '/'), array('name' => 'data-id', 'value' => 34), array('name' => 'first-name', 'value' => "'Bob'"), array('name' => 'last-name', 'value' => '"Dylan"'), array('name' => 'checked', 'value' => true)));
$this->assertSame($attributes[0], 'Hello');
$this->assertSame($attributes[1]['value'], '/');
$this->assertSame($attributes[2]['value'], 34);
$this->assertSame($attributes[3]['value'], 'Bob');
$this->assertSame($attributes[4]['value'], 'Dylan');
$this->assertSame($attributes[5]['value'], true);
}