Skip to content

Commit

Permalink
Added unit test for get/setParseHuge zendframework#28
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwild committed Dec 2, 2016
1 parent b22831c commit 550cd33
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public function testSetOptions()
'classmap' => ['TestData1' => '\ZendTest\Soap\TestAsset\TestData1',
'TestData2' => '\ZendTest\Soap\TestAsset\TestData2',],
'encoding' => 'ISO-8859-1',
'uri' => 'http://framework.zend.com/Zend_Soap_ServerTest.php'
'uri' => 'http://framework.zend.com/Zend_Soap_ServerTest.php',
'parse_huge' => false
];
$server->setOptions($options);

Expand All @@ -50,6 +51,7 @@ public function testSetOptionsViaSecondConstructorArgument()
],
'encoding' => 'ISO-8859-1',
'uri' => 'http://framework.zend.com/Zend_Soap_ServerTest.php',
'parse_huge' => false
];
$server = new Server(null, $options);

Expand Down Expand Up @@ -939,6 +941,17 @@ public function testSetAndGetWSDLCache()
$this->assertEquals(100, $options['cache_wsdl']);
}

public function testSetAndGetParseHuge()
{
$server = new Server();
$this->assertNull($server->getParseHuge());
$server->setParseHuge(true);
$this->assertEquals(true, $server->getParseHuge());
$options = $server->getOptions();
$this->assertTrue(isset($options['parse_huge']));
$this->assertEquals(true, $options['parse_huge']);
}

/**
* @group ZF-11411
*/
Expand Down

0 comments on commit 550cd33

Please sign in to comment.