Author: Piotr Olaszewski (piotroo89@gmail.com)
コード例 #1
0
ファイル: WSDL.php プロジェクト: piotrooo/wsdl-creator
 /**
  * @param string $class
  * @return WSDL
  */
 public static function fromAnnotations($class)
 {
     $annotationWSDLBuilder = new AnnotationWSDLBuilder($class);
     $WSDLBuilder = $annotationWSDLBuilder->build()->getBuilder();
     return self::fromBuilder($WSDLBuilder);
 }
コード例 #2
0
 /**
  * @test
  */
 public function shouldCreateBuilderWithWebMethodsOnly()
 {
     //given
     $annotationWSDLBuilder = new AnnotationWSDLBuilder('\\Fixtures\\ServiceWebMethods');
     //when
     $annotationWSDLBuilder->build();
     //then
     $WSDLBuilder = $annotationWSDLBuilder->getBuilder();
     Assert::thatArray($WSDLBuilder->getMethods())->extracting('name')->containsOnly('uppercaseUserName', 'methodWithoutParameters', 'methodWithoutResult');
 }