PHP Classes

File: tests/DomHandler/Wsdl/Tag/TagEnumerationTest.php

Recommend this page to a friend!
  Classes of WsdlToPhp   PHP SOAP Package Generator   tests/DomHandler/Wsdl/Tag/TagEnumerationTest.php   Download  
File: tests/DomHandler/Wsdl/Tag/TagEnumerationTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP SOAP Package Generator
Generate package to call SOAP services using WSDL
Author: By
Last change:
Date: 8 years ago
Size: 640 bytes
 

Contents

Class file image Download
<?php

namespace WsdlToPhp\PackageGenerator\Tests\DomHandler\Wsdl\Tag;

use
WsdlToPhp\PackageGenerator\Tests\TestCase;
use
WsdlToPhp\PackageGenerator\Tests\Model\WsdlTest;
use
WsdlToPhp\PackageGenerator\DomHandler\Wsdl\Wsdl;

class
TagEnumerationTest extends TestCase
{
   
/**
     *
     */
   
public function testGetValue()
    {
       
$schema = WsdlTest::numericEnumerationInstance();

       
$enumeration = $schema->getContent()->getElementsByName(Wsdl::TAG_ENUMERATION);

        foreach (
$enumeration as $index=>$enumeration) {
           
$this->assertSame(sprintf('0%s', $index+1), $enumeration->getValue());
        }
    }
}