상속: extends Youshido\GraphQL\Parser\Ast\AbstractAst, implements Youshido\GraphQL\Parser\Ast\Interfaces\ValueInterface
예제 #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();
 }
예제 #2
0
 /**
  * @expectedException \LogicException
  */
 public function testVariableLogicException()
 {
     $variable = new Variable('id', 'int', false, false, new Location(1, 1));
     $variable->getValue();
 }