Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Oct 21, 2015
2 parents 4c56b82 + f92b9d8 commit f8abdd9
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions test/ValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,28 +400,6 @@ public function testArrayMustContainDataElement(Generator $generator)
$val = AbstractValue::getXmlRpcValue($xml, AbstractValue::XML_STRING);
}

/**
* @group ZF-5405
* @dataProvider ZendTest\XmlRpc\TestProvider::provideGenerators
*/
public function testMarshalNilInStructWrappedInArray(Generator $generator)
{
if (version_compare(phpversion(), '5.4', '>=')) {
// SimpleXMLElement don't understand NIL
$this->markTestIncomplete('Code to test is not compatible with PHP 5.4');
}

AbstractValue::setGenerator($generator);
$expected = [['id' => '1', 'name' => 'vertebra, caudal', 'description' => null]];
$xml = '<value>'
. '<array><data><value><struct><member><name>id</name><value><string>1</string></value></member>'
. '<member><name>name</name><value><string>vertebra, caudal</string></value></member>'
. '<member><name>description</name><value><nil/></value></member></struct></value></data></array>'
. '</value>';
$val = AbstractValue::getXmlRpcValue($xml, AbstractValue::XML_STRING);
$this->assertSame($expected, $val->getValue());
}

// Struct

public function testFactoryAutodetectsStruct()
Expand Down

0 comments on commit f8abdd9

Please sign in to comment.