| 1 | <?php |
||
| 7 | class VariableTest extends \PHPUnit_Framework_TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Test if variable value equals expected value |
||
| 11 | * |
||
| 12 | * @dataProvider variableProvider |
||
| 13 | */ |
||
| 14 | public function testGetValue($actual, $expected) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @expectedException \LogicException |
||
| 23 | * @expectedExceptionMessage Value is not set for variable "foo" |
||
| 24 | */ |
||
| 25 | public function testGetNullValueException() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array Array of <mixed: value to set, mixed: expected value> |
||
| 33 | */ |
||
| 34 | public static function variableProvider() |
||
| 43 | } |