From 081509a09c1893b803cee40bb88856f258b65e57 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sat, 9 Jan 2010 21:30:46 -0500 Subject: [PATCH] Fixing typos. Removing useless constant. Fixing constructor --- cake/console/libs/testsuite.php | 2 +- cake/tests/lib/reporter/cake_cli_reporter.php | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cake/console/libs/testsuite.php b/cake/console/libs/testsuite.php index 3670e76e2..f4822441d 100644 --- a/cake/console/libs/testsuite.php +++ b/cake/console/libs/testsuite.php @@ -237,7 +237,7 @@ class TestSuiteShell extends Shell { $this->err(sprintf(__('%s is invalid. Should be case, group or all', true), $this->type)); return false; } - $ext = $this->Manager->getExtensino($this->type); + $ext = $this->Manager->getExtension($this->type); switch ($this->type) { case 'all': diff --git a/cake/tests/lib/reporter/cake_cli_reporter.php b/cake/tests/lib/reporter/cake_cli_reporter.php index aecbce25e..e2db21771 100644 --- a/cake/tests/lib/reporter/cake_cli_reporter.php +++ b/cake/tests/lib/reporter/cake_cli_reporter.php @@ -17,10 +17,6 @@ * @since CakePHP(tm) v 1.2.0.4433 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ - if (! defined('ST_FAILDETAIL_SEPARATOR')) { - define('ST_FAILDETAIL_SEPARATOR', "->"); - } - if (version_compare(PHP_VERSION, '4.4.4', '<=') || PHP_SAPI == 'cgi') { define('STDOUT', fopen('php://stdout', 'w')); @@ -37,9 +33,9 @@ */ class CakeCliReporter extends TextReporter { - var $faildetail_separator = ST_FAILDETAIL_SEPARATOR; + var $faildetail_separator = '->'; - function CLIReporter($faildetail_separator = NULL) { + function CakeCLIReporter($faildetail_separator = NULL) { $this->SimpleReporter(); if (! is_null($faildetail_separator)) { $this->setFailDetailSeparator($faildetail_separator);