getValue() public method

public getValue ( ) : mixed
return mixed
示例#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();
 }