예제 #1
0
 public function testMiddlewareReturnsEmptyArray()
 {
     $this->assertEquals(array(), Rack::middleware());
 }
예제 #2
0
파일: index.php 프로젝트: sniemela/rack-php
<?php

require realpath(dirname(__FILE__) . '/../lib/autoload.php');
use core\Rack;
//$app = new creationix\MyApplication;
$app = function ($env) {
    return array(200, array('Content-Type' => 'text/html'), array('Hello World'));
};
Rack::run($app);