public function testGetValueAsGotoToken() { $scope = new Scope(['something' => 'foo', 'bar' => '$something']); $this->assertSame('foo', $scope->getValue('bar')); }
/** * @dataProvider provideValuesForCompilation */ public function testCompileSimple($values, $compiledScript) { $this->assertSame($compiledScript, Scope::compile($values)); }