Skip to content

Commit

Permalink
enable test.php webrunner again and fix a missing namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Aug 31, 2013
1 parent 481a308 commit abeaf48
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion App/webroot/index.php
Expand Up @@ -20,7 +20,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
// for built-in server
if (php_sapi_name() == 'cli-server') {
if (php_sapi_name() === 'cli-server') {
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
}
require dirname(__DIR__) . '/Config/bootstrap.php';
Expand Down
31 changes: 31 additions & 0 deletions App/webroot/test.php
@@ -0,0 +1,31 @@
<?php
/**
* Web Access Frontend for TestSuite
*
* PHP 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/2.0/en/development/testing.html
* @package app.webroot
* @since CakePHP(tm) v 1.2.0.4433
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
set_time_limit(0);
ini_set('display_errors', 1);

require dirname(__DIR__) . '/Config/bootstrap.php';

use Cake\Core\Configure;
use Cake\TestSuite\TestSuiteDispatcher;

if (Configure::read('debug') < 1) {
exit(__d('cake_dev', 'Debug setting does not allow access to this url.'));
}

TestSuiteDispatcher::run();
2 changes: 2 additions & 0 deletions lib/Cake/TestSuite/templates/header.php
Expand Up @@ -17,6 +17,8 @@
* @since CakePHP(tm) v 1.2.0.4433
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/

use Cake\Core\Configure;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
Expand Down

0 comments on commit abeaf48

Please sign in to comment.