PHP Classes

File: tests/Model/StructAttributeTest.php

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


Class file image Download

namespace WsdlToPhp\PackageGenerator\Tests\Model;


StructAttributeTest extends TestCase
public function testGetUniqueName()
$struct = StructTest::instance('Foo', true);
$struct->addAttribute('id', 'int');
$struct->addAttribute('name', 'string');
$struct->addAttribute('Name', 'string');

$this->assertEquals('id', $struct->getAttribute('id')->getUniqueName());
$this->assertEquals('name', $struct->getAttribute('name')->getUniqueName());
$this->assertEquals('Name_1', $struct->getAttribute('Name')->getUniqueName());

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