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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into cach…
Browse files Browse the repository at this point in the history
…e_filesystem
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,28 +540,23 @@ public function getType($type)
case 'string':
case 'str':
return 'xsd:string';
break;
case 'long':
return 'xsd:long';
case 'int':
case 'integer':
return 'xsd:int';
break;
case 'float':
case 'double':
return 'xsd:float';
break;
case 'boolean':
case 'bool':
return 'xsd:boolean';
break;
case 'array':
return 'soap-enc:Array';
break;
case 'object':
return 'xsd:struct';
break;
case 'mixed':
return 'xsd:anyType';
break;
case 'void':
return '';
default:
Expand Down
9 changes: 9 additions & 0 deletions test/WsdlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,15 @@ function testCaseOfDocBlockParamsDosNotMatterForSoapTypeDetectionZf3910()
$this->assertEquals("xsd:float", $wsdl->getType("douBLE"));
}

/**
* @group ZF-11937
*/
public function testWsdlGetTypeWillAllowLongType()
{
$wsdl = new Wsdl('MyService', 'http://localhost/MyService.php');
$this->assertEquals("xsd:long", $wsdl->getType("long"));
}

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

0 comments on commit 9db7d70

Please sign in to comment.