public/phpmyadmin/vendor/phpmyadmin/sql-parser/tests/Lexer/ContextTest.php
/**
     * Test for loading closest SQL context
     *
     * @dataProvider contextLoading
     */
Test for loading closest SQL context
@dataProvider contextLoading
Test for loading closest SQL context @dataProvider contextLoading
public function testLoadClosest($context, $expected)
    {
        $this->assertEquals($expected, Context::loadClosest($context));
        if (! is_null($expected)) {
            $this->assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\Context' . $expected, Context::$loadedContext);
            $this->assertTrue(class_exists(Context::$loadedContext));
        }
        Context::load('');
    }
public function testLoadClosest ( $ context , $ expected ) { $ this -> assertEquals ( $ expected , Context :: loadClosest ( $ context ) ) ; if ( ! is_null ( $ expected ) ) { $ this -> assertEquals ( '\\PhpMyAdmin\\SqlParser\\Contexts\\Context' . $ expected , Context :: $ loadedContext ) ; $ this -> assertTrue ( class_exists ( Context :: $ loadedContext ) ) ; } Context :: load ( '' ) ; }
Test for loading closest SQL context
 @dataProvider contextLoading
Test for loading closest SQL context @dataProvider contextLoading
// Restoring context.