for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class DataTypeTest extends \PHPUnit\Framework\TestCase
{
protected function setUp(): void
$this->datatype = new DataType();
datatype
}
/**
* testTooManyAttributes
*
* @expectedException BuildException
* @expectedExceptionMessage You must not specify more than one attribute when using refid
*/
public function testTooManyAttributes()
$ex = $this->datatype->tooManyAttributes();
throw $ex;
* testNoChildrenAllowedException
* @expectedExceptionMessage You must not specify nested elements when using refid
public function testNoChildrenAllowedException()
$ex = $this->datatype->noChildrenAllowed();
* testCircularReferenceException
* @expectedExceptionMessage This data type contains a circular reference.
public function testCircularReferenceException()
$ex = $this->datatype->circularReference();
public function testToString()
$str = "";
$str .= $this->datatype;
$this->assertEquals("DataType", $str);