コード例 #1
0
ファイル: ScopeTest.php プロジェクト: lingualeo/php-servaxle
 public function testGetValueAsGotoToken()
 {
     $scope = new Scope(['something' => 'foo', 'bar' => '$something']);
     $this->assertSame('foo', $scope->getValue('bar'));
 }
コード例 #2
0
 /**
  * @dataProvider provideValuesForCompilation
  */
 public function testCompileSimple($values, $compiledScript)
 {
     $this->assertSame($compiledScript, Scope::compile($values));
 }