PHP Classes

File: tests/ConfigurationReader/ReservedKeywordsTest.php

Recommend this page to a friend!
  Classes of WsdlToPhp   PHP SOAP Package Generator   tests/ConfigurationReader/ReservedKeywordsTest.php   Download  
File: tests/ConfigurationReader/ReservedKeywordsTest.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: 6,805 bytes
 

Contents

Class file image Download
<?php

namespace WsdlToPhp\PackageGenerator\Tests\ConfigurationReader;

use
WsdlToPhp\PackageGenerator\Tests\TestCase;
use
WsdlToPhp\PackageGenerator\ConfigurationReader\ReservedKeywords;

class
ReservedKeywordsTest extends TestCase
{
   
/**
     * @return ReservedKeywords
     */
   
public static function instance()
    {
        return
ReservedKeywords::instance(__DIR__ . '/../resources/reserved_keywords.yml');
    }
   
/**
     *
     */
   
public function testIs__CLASS__()
    {
       
$this->assertTrue(self::instance()->is('__CLASS__'));
    }
   
/**
     *
     */
   
public function testIs___class___()
    {
       
$this->assertFalse(self::instance()->is('__class__'));
    }
    public function
testIs__construct()
    {
       
$this->assertTrue(self::instance()->is('__construct'));
    }
    public function
testIsgetSoapClient()
    {
       
$this->assertTrue(self::instance()->is('getSoapClient'));
    }
    public function
testIssetSoapClient()
    {
       
$this->assertTrue(self::instance()->is('setSoapClient'));
    }
    public function
testIsinitSoapClient()
    {
       
$this->assertTrue(self::instance()->is('initSoapClient'));
    }
    public function
testIsgetSoapClientClassName()
    {
       
$this->assertTrue(self::instance()->is('getSoapClientClassName'));
    }
    public function
testIsgetDefaultWsdlOptions()
    {
       
$this->assertTrue(self::instance()->is('getDefaultWsdlOptions'));
    }
    public function
testIssetLocation()
    {
       
$this->assertTrue(self::instance()->is('setLocation'));
    }
    public function
testIsgetLastRequest()
    {
       
$this->assertTrue(self::instance()->is('getLastRequest'));
    }
    public function
testIsgetLastResponse()
    {
       
$this->assertTrue(self::instance()->is('getLastResponse'));
    }
    public function
testIsgetLastXml()
    {
       
$this->assertTrue(self::instance()->is('getLastXml'));
    }
    public function
testIsgetLastRequestHeaders()
    {
       
$this->assertTrue(self::instance()->is('getLastRequestHeaders'));
    }
    public function
testIsgetLastResponseHeaders()
    {
       
$this->assertTrue(self::instance()->is('getLastResponseHeaders'));
    }
    public function
testIsgetLastHeaders()
    {
       
$this->assertTrue(self::instance()->is('getLastHeaders'));
    }
    public function
testIsgetFormatedXml()
    {
       
$this->assertTrue(self::instance()->is('getFormatedXml'));
    }
    public function
testIsconvertStringHeadersToArray()
    {
       
$this->assertTrue(self::instance()->is('convertStringHeadersToArray'));
    }
    public function
testIssetSoapHeader()
    {
       
$this->assertTrue(self::instance()->is('setSoapHeader'));
    }
    public function
testIssetHttpHeader()
    {
       
$this->assertTrue(self::instance()->is('setHttpHeader'));
    }
    public function
testIsgetLastError()
    {
       
$this->assertTrue(self::instance()->is('getLastError'));
    }
    public function
testIssetLastError()
    {
       
$this->assertTrue(self::instance()->is('setLastError'));
    }
    public function
testIssaveLastError()
    {
       
$this->assertTrue(self::instance()->is('saveLastError'));
    }
    public function
testIsgetLastErrorForMethod()
    {
       
$this->assertTrue(self::instance()->is('getLastErrorForMethod'));
    }
    public function
testIsgetResult()
    {
       
$this->assertTrue(self::instance()->is('getResult'));
    }
    public function
testIssetResult()
    {
       
$this->assertTrue(self::instance()->is('setResult'));
    }
    public function
testIs_set()
    {
       
$this->assertTrue(self::instance()->is('_set'));
    }
    public function
testIs_get()
    {
       
$this->assertTrue(self::instance()->is('_get'));
    }
    public function
testIsgetAttributeName()
    {
       
$this->assertTrue(self::instance()->is('getAttributeName'));
    }
    public function
testIslength()
    {
       
$this->assertTrue(self::instance()->is('length'));
    }
    public function
testIscount()
    {
       
$this->assertTrue(self::instance()->is('count'));
    }
    public function
testIscurrent()
    {
       
$this->assertTrue(self::instance()->is('current'));
    }
    public function
testIsnext()
    {
       
$this->assertTrue(self::instance()->is('next'));
    }
    public function
testIsrewind()
    {
       
$this->assertTrue(self::instance()->is('rewind'));
    }
    public function
testIsvalid()
    {
       
$this->assertTrue(self::instance()->is('valid'));
    }
    public function
testIskey()
    {
       
$this->assertTrue(self::instance()->is('key'));
    }
    public function
testIsitem()
    {
       
$this->assertTrue(self::instance()->is('item'));
    }
    public function
testIsadd()
    {
       
$this->assertTrue(self::instance()->is('add'));
    }
    public function
testIsfirst()
    {
       
$this->assertTrue(self::instance()->is('first'));
    }
    public function
testIslast()
    {
       
$this->assertTrue(self::instance()->is('last'));
    }
    public function
testIsoffsetExists()
    {
       
$this->assertTrue(self::instance()->is('offsetExists'));
    }
    public function
testIsoffsetGet()
    {
       
$this->assertTrue(self::instance()->is('offsetGet'));
    }
    public function
testIsoffsetSet()
    {
       
$this->assertTrue(self::instance()->is('offsetSet'));
    }
    public function
testIsoffsetUnset()
    {
       
$this->assertTrue(self::instance()->is('offsetUnset'));
    }
    public function
testIsgetInternArray()
    {
       
$this->assertTrue(self::instance()->is('getInternArray'));
    }
    public function
testIssetInternArray()
    {
       
$this->assertTrue(self::instance()->is('setInternArray'));
    }
    public function
testIsgetInternArrayOffset()
    {
       
$this->assertTrue(self::instance()->is('getInternArrayOffset'));
    }
    public function
testIsinitInternArray()
    {
       
$this->assertTrue(self::instance()->is('initInternArray'));
    }
    public function
testIssetInternArrayOffset()
    {
       
$this->assertTrue(self::instance()->is('setInternArrayOffset'));
    }
    public function
testIsgetInternArrayIsArray()
    {
       
$this->assertTrue(self::instance()->is('getInternArrayIsArray'));
    }
    public function
testIssetInternArrayIsArray()
    {
       
$this->assertTrue(self::instance()->is('setInternArrayIsArray'));
    }
   
/**
     * @expectedException InvalidArgumentException
     */
   
public function testException()
    {
       
ReservedKeywords::instance(__DIR__ . '/../resources/bad_reserved_keywords.yml');
    }
   
/**
     * @expectedException InvalidArgumentException
     */
   
public function testExceptionForUnexistingFile()
    {
       
ReservedKeywords::instance(__DIR__ . '/../resources/bad_reserved_keywords');
    }
}