diff --git a/src/Wsdl.php b/src/Wsdl.php index f6a4b1f2..4d1df096 100644 --- a/src/Wsdl.php +++ b/src/Wsdl.php @@ -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'; diff --git a/test/WsdlTest.php b/test/WsdlTest.php index e6006164..2710f455 100644 --- a/test/WsdlTest.php +++ b/test/WsdlTest.php @@ -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.'); @@ -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")); } /**