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

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP SOAP Package Generator  >  tests/DomHandler/Wsdl/Tag/TagImportTest.php  >  Download  
File: tests/DomHandler/Wsdl/Tag/TagImportTest.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: 5 years ago
Size: 777 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
TagImportTest extends TestCase
{
   
/**
     *
     */
   
public function testGetLocationAttribute()
    {
       
$wsdl = WsdlTest::partnerInstance(false);

       
$imports = $wsdl->getContent()->getElementsByName(Wsdl::TAG_IMPORT);

       
$count = 0;
        foreach (
$imports as $index=>$import) {
           
$this->assertSame(sprintf('http://secapp.euroconsumers.org/partnerservice/PartnerService.svc?xsd=xsd%d', $index), $import->getLocationAttribute());
           
$count++;
        }
       
$this->assertSame(19, $count);
    }
}


For more information send a message to info at phpclasses dot org.