load() 공개 정적인 메소드

Contexts may be used by accessing the context directly.
public static load ( string $context = '' ) : void
$context string Name of the context or full class name that defines the context.
리턴 void
예제 #1
0
 /**
  * @expectedException Exception
  * @expectedExceptionMessage Specified context ("\SqlParser\Contexts\ContextFoo") does not exist.
  */
 public function testLoadError()
 {
     Context::load('Foo');
 }