Skip to content

Commit bda7d11

Browse files
Merge branch '2.0'
2 parents c83ef15 + b52e5cb commit bda7d11

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/Framework/MockObject/Generator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ public function generateClassFromWsdl($wsdlFile, $className, array $methods = ar
547547
$_methods = array_unique($client->__getFunctions());
548548
unset($client);
549549

550+
sort($_methods);
551+
550552
$templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR .
551553
'Generator' . DIRECTORY_SEPARATOR;
552554
$methodTemplate = new Text_Template(

tests/MockObject/wsdl_class.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class GoogleSearch extends \SoapClient
2323
parent::__construct('%s/GoogleSearch.wsdl', $options);
2424
}
2525

26-
public function doGetCachedPage($key, $url)
26+
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
2727
{
2828
}
2929

30-
public function doSpellingSuggestion($key, $phrase)
30+
public function doGetCachedPage($key, $url)
3131
{
3232
}
3333

34-
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
34+
public function doSpellingSuggestion($key, $phrase)
3535
{
3636
}
3737
}

tests/MockObject/wsdl_class_namespace.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class GoogleSearch extends \SoapClient
2525
parent::__construct('%s/GoogleSearch.wsdl', $options);
2626
}
2727

28-
public function doGetCachedPage($key, $url)
28+
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
2929
{
3030
}
3131

32-
public function doSpellingSuggestion($key, $phrase)
32+
public function doGetCachedPage($key, $url)
3333
{
3434
}
3535

36-
public function doGoogleSearch($key, $q, $start, $maxResults, $filter, $restrict, $safeSearch, $lr, $ie, $oe)
36+
public function doSpellingSuggestion($key, $phrase)
3737
{
3838
}
3939
}

0 commit comments

Comments
 (0)