PHP Classes

File: tests/File/TutorialTest.php

Recommend this page to a friend!
  Classes of WsdlToPhp   PHP SOAP Package Generator   tests/File/TutorialTest.php   Download  
File: tests/File/TutorialTest.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: 9 years ago
Size: 2,049 bytes
 

Contents

Class file image Download
<?php

namespace WsdlToPhp\PackageGenerator\Tests\File;

use
WsdlToPhp\PackageGenerator\File\Tutorial as TutorialFile;

class
TutorialTest extends AbstractFile
{
    const
FILE_NAME = 'tutorial';
   
/**
     *
     */
   
public function testBing()
    {
       
$instance = self::bingGeneratorInstance();

       
$tutorial = new TutorialFile($instance, self::FILE_NAME);
       
$tutorial->write();

       
$this->assertSameFileContent('ValidBingTutorial', $tutorial);
    }
   
/**
     *
     */
   
public function testBingNotStandalone()
    {
       
$instance = self::bingGeneratorInstance();
       
$instance->setOptionStandalone(false);

       
$tutorial = new TutorialFile($instance, self::FILE_NAME);
       
$tutorial->write();

       
$this->assertSameFileContent('ValidBingTutorialNotStandalone', $tutorial);
    }
   
/**
     *
     */
   
public function testBingNoPrefix()
    {
       
$instance = self::bingGeneratorInstance();
       
$instance->setOptionPrefix('');

       
$tutorial = new TutorialFile($instance, self::FILE_NAME);
       
$tutorial->write();

       
$this->assertSameFileContent('ValidBingTutorialNoPrefix', $tutorial);
    }
   
/**
     *
     */
   
public function testReforma()
    {
       
$instance = self::reformaGeneratorInstance();

       
$tutorial = new TutorialFile($instance, self::FILE_NAME);
       
$tutorial->write();

       
$this->assertSameFileContent('ValidReformaTutorial', $tutorial);
    }
   
/**
     *
     */
   
public function testActon()
    {
       
$instance = self::actonGeneratorInstance();

       
$tutorial = new TutorialFile($instance, self::FILE_NAME);
       
$tutorial->write();

       
$this->assertSameFileContent('ValidActonTutorial', $tutorial);
    }
   
/**
     *
     */
   
public function testOmniture()
    {
       
$instance = self::omnitureGeneratorInstance();

       
$tutorial = new TutorialFile($instance, self::FILE_NAME);
       
$tutorial->write();

       
$this->assertSameFileContent('ValidOmnitureTutorial', $tutorial);
    }
}