Browse Source

modify out() to make tests pass on CLI

euromark 13 years ago
parent
commit
6c7064865e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      TestSuite/MyCakeTestCase.php

+ 4 - 0
TestSuite/MyCakeTestCase.php

@@ -78,6 +78,10 @@ abstract class MyCakeTestCase extends CakeTestCase {
 	 * 2011-12-04 ms
 	 */
 	public static function out($data, $pre = true) {
+		if (PHP_SAPI === 'cli') {
+			return;
+		}
+
 		if ($pre) {
 			pr($data);
 		} else {