Permalink
Browse files

Extended SoapServerBuilder with AbstractSoapBuilder of SoapCommon lib…

…rary
  • Loading branch information...
1 parent 3bb6d3a commit cd2d8d90e82d4624bc5c14901d09e209a6308a28 @francisbesset francisbesset committed Oct 9, 2011
Oops, something went wrong.
@@ -16,39 +16,30 @@
/**
* UnitTest for \BeSimple\SoapServer\SoapServerBuilder
- *
+ *
* @author Christian Kerl
*/
class SoapServerBuilderTest extends \PHPUnit_Framework_TestCase
{
public function testUnconfiguredWsdl()
{
- $builder = SoapServerBuilder::createEmpty();
-
- try
- {
- $builder->build();
-
- $this->fail('The SoapServer requires a WSDL file.');
- }
- catch(\InvalidArgumentException $e)
- {
- }
+ $builder = $this->getSoapServerBuilder();
+
+ $this->setExpectedException('InvalidArgumentException');
+ $builder->build();
}
-
+
public function testUnconfiguredHandler()
{
- $builder = SoapServerBuilder::createEmpty();
+ $builder = $this->getSoapServerBuilder();
$builder->withWsdl('my.wsdl');
-
- try
- {
- $builder->build();
-
- $this->fail('The SoapServer requires a handler.');
- }
- catch(\InvalidArgumentException $e)
- {
- }
+
+ $this->setExpectedException('InvalidArgumentException');
+ $builder->build();
+ }
+
+ public function getSoapServerBuilder()
+ {
+ return new SoapServerBuilder();
}
}
View
0 vendors.php 100644 → 100755
No changes.

0 comments on commit cd2d8d9

Please sign in to comment.