File: tests/DomHandler/NameSpaceHandlerTest.php

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP SOAP Package Generator  >  tests/DomHandler/NameSpaceHandlerTest.php  >  Download  
File: tests/DomHandler/NameSpaceHandlerTest.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: 889 bytes
 

Contents

Class file image Download
<?php

namespace WsdlToPhp\PackageGenerator\DomHandler;

use
WsdlToPhp\PackageGenerator\Tests\TestCase;
use
WsdlToPhp\PackageGenerator\Tests\DomHandler\DomDocumentHandlerTest;

class
NameSpaceHandlerTest extends TestCase
{
   
/**
     * @see \WsdlToPhp\PackageGenerator\DomHandler\AbstractNodeHandler::getParent()
     * @return AbstractNodeHandler
     */
   
public function testGetParent()
    {
       
$domDocument = DomDocumentHandlerTest::bingInstance();

       
$nameSpaceHandler = $domDocument->getRootElement()->getAttribute('xmlns:xsi');

       
$this->assertNull($nameSpaceHandler->getParent());
    }
   
/**
     * @return null|string
     */
   
public function testGetValueNamespace()
    {
       
$domDocument = DomDocumentHandlerTest::bingInstance();

       
$this->assertNull($domDocument->getRootElement()->getAttribute('xmlns:xsi')->getValueNamespace());
    }
}


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