PHP Classes

File: tests/Container/ContainerTest.php

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP SOAP Package Generator  >  tests/Container/ContainerTest.php  >  Download  
File: tests/Container/ContainerTest.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: 6 years ago
Size: 917 bytes
 

Contents

Class file image Download
<?php

namespace WsdlToPhp\PackageGenerator\Tests\Container;

use
WsdlToPhp\PackageGenerator\Tests\TestCase;

class
ContainerTest extends TestCase
{
   
/**
     * @expectedException \InvalidArgumentException
     */
   
public function testAddWithException()
    {
       
$container = new ObjectContainerTest(self::getBingGeneratorInstance());
       
$container->add(new ObjectTest());
    }
   
/**
     * @expectedException \InvalidArgumentException
     */
   
public function testOffsetSetWithException()
    {
       
$container = new ObjectContainerTest(self::getBingGeneratorInstance());
       
$container->offsetSet(1, new ObjectTest());
    }
   
/**
     * @expectedException \InvalidArgumentException
     */
   
public function testInvalidPropertyName()
    {
       
$container = new FalseObjectContainerTest(self::getBingGeneratorInstance());
       
$container->add(new FalseObjectTest());
    }
}

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