getValue() public method

public getValue ( ) : mixed
return mixed
コード例 #1
0
ファイル: VariableTest.php プロジェクト: youshido/graphql
 /**
  * @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
ファイル: AstTest.php プロジェクト: youshido/graphql
 /**
  * @expectedException \LogicException
  */
 public function testVariableLogicException()
 {
     $variable = new Variable('id', 'int', false, false, new Location(1, 1));
     $variable->getValue();
 }