/**
* @test
*/
public function shouldGetTypeForObjectType()
{
//given
$elements = [new Node('string', '$name', false)];
$node = new Node('object', '$user', false, $elements);
//when
$type = $node->getType();
//then
$this->assertEquals('object', $type);
}