コード例 #1
0
ファイル: RouteTest.php プロジェクト: djom20/Apricot
 public function testSecureRouteNotMatchIfNoHttps()
 {
     Apricot::reset();
     Apricot::setEnvironment('test');
     Apricot::when('/secured', Apricot::with(array('_secure' => true), function () {
         echo 'Foo';
     }));
     Apricot::notFound(function () {
         echo 'Not Found';
     });
     $this->assertTrue('Not Found' === Apricot::browse('/secured'));
 }