load() public static method

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.
return void
Esempio n. 1
0
 /**
  * @expectedException Exception
  * @expectedExceptionMessage Specified context ("\SqlParser\Contexts\ContextFoo") does not exist.
  */
 public function testLoadError()
 {
     Context::load('Foo');
 }