PHP Classes

File: tests/Generator/GeneratorSoapClientTest.php

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

Contents

Class file image Download
<?php

namespace WsdlToPhp\PackageGenerator\Test\Generator;

use
WsdlToPhp\PackageGenerator\Generator\Generator;
use
WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions;
use
WsdlToPhp\PackageGenerator\Tests\TestCase;

class
GeneratorSoapClientTest extends TestCase
{
   
/**
     * @expectedException \InvalidArgumentException
     */
   
public function testExceptionOnWsdl()
    {
       
$options = GeneratorOptions::instance();
       
$options
           
->setComposerName('wsdltophp/invalid')
            ->
setDestination(self::getTestDirectory())
            ->
setOrigin(self::schemaPartnerPath());

       
$generator = new Generator($options);
    }
}