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

Commit

Permalink
Merge branch 'ZF-11993' of https://github.com/sasezaki/zf2 into hotfi…
Browse files Browse the repository at this point in the history
…x/zf-11993
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,9 @@ public function getType($type)
case 'integer':
return 'xsd:int';
case 'float':
case 'double':
return 'xsd:float';
case 'double':
return 'xsd:double';
case 'boolean':
case 'bool':
return 'xsd:boolean';
Expand Down
4 changes: 2 additions & 2 deletions test/WsdlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function testGetType()
$this->assertEquals('xsd:int', $wsdl->getType('int'), 'xsd:int detection failed.');
$this->assertEquals('xsd:int', $wsdl->getType('integer'), 'xsd:int detection failed.');
$this->assertEquals('xsd:float', $wsdl->getType('float'), 'xsd:float detection failed.');
$this->assertEquals('xsd:float', $wsdl->getType('double'), 'xsd:float detection failed.');
$this->assertEquals('xsd:double', $wsdl->getType('double'), 'xsd:double detection failed.');
$this->assertEquals('xsd:boolean', $wsdl->getType('boolean'), 'xsd:boolean detection failed.');
$this->assertEquals('xsd:boolean', $wsdl->getType('bool'), 'xsd:boolean detection failed.');
$this->assertEquals('soap-enc:Array', $wsdl->getType('array'), 'soap-enc:Array detection failed.');
Expand Down Expand Up @@ -619,7 +619,7 @@ function testCaseOfDocBlockParamsDosNotMatterForSoapTypeDetectionZf3910()
$this->assertEquals("xsd:int", $wsdl->getType("iNt"));
$this->assertEquals("xsd:int", $wsdl->getType("INTEGER"));
$this->assertEquals("xsd:float", $wsdl->getType("FLOAT"));
$this->assertEquals("xsd:float", $wsdl->getType("douBLE"));
$this->assertEquals("xsd:double", $wsdl->getType("douBLE"));
}

/**
Expand Down

0 comments on commit bc3880f

Please sign in to comment.