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