Esempio n. 1
0
 public function __construct()
 {
     // don't access this space directly
     // work above or below it
     parent::__construct();
     $this->load_classes(array('lang', 'lib.template', 'lib.access'));
     // from entrance helper - sets defaults
     directions();
     // global $go of default $_GET values
     $this->check_routes();
 }
Esempio n. 2
0
    /
   \\
    /
   \\
    ^
   \\ \\
    D \\
E
));
it('generates "' . ($dir = 'F R F F F L F F F') . '"', $dir == directions(<<<E
    |
    ^
   | \\
   | /
    Y
    ^
   / |
   \\ |
    Y
    D
E
));
/**
 * Test adapter.
 *
 * It emulates the behaviour of the CLI and collects the output to be tested.
 *
 * @param string $map the input map specifications
 * @return string the output of the program
 */
function directions($map)