TestSuiteのスタイルを変更してみた。
通常の構成だと、
/webroot/test.php
∟/css
∟/img
∟/js
∟/files
となっているところを
/webroot/test.php
∟/common/css
∟/img
∟/js
∟/files
こんな感じにする方法。
lib/Cake/TestSuite/CakTestSuiteDispatcher.phpの__constractを以下のように変更
public function __construct() { $this-> _baseUrl = $_SERVER[ 'PHP_SELF' ]; // $dir = rtrim(dirname($this->_baseUrl), '\\'); $dir = '/common/' ; $this-> _baseDir = ($dir === '/') ? $dir : $dir . '/'; }