Youshido\Tests\DataProvider\TestUnionType::resolveType PHP Метод

resolveType() публичный Метод

public resolveType ( $object )
    public function resolveType($object)
    {
        return $object;
    }

Usage 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'));
 }