public function testSfErrorHeader_printフラグがOFFの場合_指定したメッセージがグローバル変数に格納される() { global $GLOBAL_ERR; $this->expectOutputString(''); $old_err = $GLOBAL_ERR; SC_Utils::sfErrorHeader('ERROR MESSAGE'); $this->expected = $old_err . '<div id="errorHeader">ERROR MESSAGE</div>'; $this->actual = $GLOBAL_ERR; $this->verify(); }
function sfInitInstall() { // インストール済みが定義されていない。 if (!defined('ECCUBE_INSTALL')) { if (!ereg("/install/", $_SERVER['PHP_SELF'])) { header("Location: ./install/"); // TODO 絶対URL にする } } else { $path = HTML_PATH . "install/index.php"; if (file_exists($path)) { SC_Utils::sfErrorHeader(">> /install/index.phpは、インストール完了後にファイルを削除してください。"); } } }