Youshido\Tests\DataProvider\TestUnionType::getDescription PHP Method

getDescription() public method

public getDescription ( )
    public function getDescription()
    {
        return 'Union collect cars types';
    }

Usage Example

Example #1
0
 public function testObjectCreation()
 {
     $type = new TestUnionType();
     $this->assertEquals('TestUnion', $type->getName());
     $this->assertEquals('Union collect cars types', $type->getDescription());
     $this->assertEquals([new TestObjectType()], $type->getTypes());
     $this->assertEquals('test', $type->resolveType('test'));
 }