Inheritance: extends Youshido\GraphQL\Parser\Ast\AbstractAst, implements Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface
Beispiel #1
0
 /**
  * @expectedException \LogicException
  * @expectedExceptionMessage Value is not set for variable "foo"
  */
 public function testGetNullValueException()
 {
     $var = new Variable('foo', 'bar', false, false, new Location(1, 1));
     $var->getValue();
 }
Beispiel #2
0
 /**
  * @expectedException \LogicException
  */
 public function testVariableLogicException()
 {
     $variable = new Variable('id', 'int', false, false, new Location(1, 1));
     $variable->getValue();
 }