xxxxxxxxxx
namespace WsdlToPhp\PackageBase\Tests;
class StructEnumTest extends TestCase
{
/**
*
*/
public function test__toStringMustReturnTheClassNameOfTheInstance()
{
$this->assertSame('WsdlToPhp\PackageBase\Tests\StructEnumObject', (string) new StructEnumObject());
}
/**
*
*/
public function testValueIsValidMustReturnTrue()
{
$this->assertTrue(StructEnumObject::valueIsValid(1));
$this->assertTrue(StructEnumObject::valueIsValid(StructEnumObject::ONE));
}
/**
*
*/
public function testValueIsValidMustReturnFalse()
{
$this->assertFalse(StructEnumObject::valueIsValid('1'));
$this->assertFalse(StructEnumObject::valueIsValid((string) StructEnumObject::ONE));
}
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2024 Providr.IO