Browse Source

silent more tests

euromark 13 years ago
parent
commit
e81679d677

+ 5 - 2
Test/Case/AllToolsTest.php

@@ -16,7 +16,11 @@ class AllToolsTest extends PHPUnit_Framework_TestSuite {
 		$Suite->addTestDirectory($path . DS . 'Lib');
 
 		$path = dirname(__FILE__);
+		$Suite->addTestDirectory($path . DS . 'View' . DS . 'Helper');
+
+		$path = dirname(__FILE__);
 		$Suite->addTestDirectory($path . DS . 'Model');
+
 		//$path = dirname(__FILE__);
 		//$Suite->addTestDirectory($path . DS . 'Model' . DS . 'Behavior');
 
@@ -28,8 +32,7 @@ class AllToolsTest extends PHPUnit_Framework_TestSuite {
 		$path = dirname(__FILE__);
 		$Suite->addTestDirectory($path . DS . 'Controller' . DS . 'Component' . DS . 'Auth');
 
-		$path = dirname(__FILE__);
-		$Suite->addTestDirectory($path . DS . 'View' . DS . 'Helper');
+
 
 		//$path = CakePlugin::path('Tools') . 'Test' . DS . 'Case' . DS;
 		//$Suite->addTestDirectoryRecursive($path);

+ 11 - 11
Test/Case/Lib/GeocodeLibTest.php

@@ -37,7 +37,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 		foreach ($coords as $coord) {
 			$is = $this->Geocode->distance($coord['x'], $coord['y']);
-			echo $coord['name'].':';
+			//echo $coord['name'].':';
 			//pr('is: '.$is.' - expected: '.$coord['d']);
 			$this->assertEquals($coord['d'], $is);
 		}
@@ -65,7 +65,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 		);
 		foreach ($values as $value) {
 			$is = $this->Geocode->convert($value[0], $value[1], $value[2]);
-			echo $value[0].$value[1].' in '.$value[2].':';
+			//echo $value[0].$value[1].' in '.$value[2].':';
 			//pr('is: '.returns($is).' - expected: '.$value[3]);
 			$this->assertEquals($value[3], round($is, 8));
 		}
@@ -98,7 +98,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 	public function testWithJson() {
 		$this->Geocode->setOptions(array('output' => 'json'));
 		$address = '74523 Deutschland';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 		$is = $this->Geocode->geocode($address);
 		$this->assertTrue($is);
 
@@ -120,7 +120,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 	public function testGeocode() {
 		$address = '74523 Deutschland';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 		$is = $this->Geocode->geocode($address);
 		//debug($is);
 		$this->assertTrue($is);
@@ -135,7 +135,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 
 		$address = 'Leopoldstraße 100, München';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 		$is = $this->Geocode->geocode($address);
 		//debug($is);
 		$this->assertTrue($is);
@@ -152,7 +152,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 
 		$address = 'Oranienburger Straße 87, 10178 Berlin, Deutschland';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 		$is = $this->Geocode->geocode($address);
 		//debug($is);
 		$this->assertTrue($is);
@@ -171,7 +171,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 	public function testGeocodeInvalid() {
 		$address = 'Hjfjosdfhosj, 78878 Mdfkufsdfk';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 		$is = $this->Geocode->geocode($address);
 		//debug($is);
 		$this->assertFalse($is);
@@ -185,7 +185,7 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 	public function testGeocodeMinAcc() {
 		$address = 'Deutschland';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 		$this->Geocode->setOptions(array('min_accuracy'=>3));
 		$is = $this->Geocode->geocode($address);
 		//debug($is);
@@ -201,14 +201,14 @@ class GeocodeLibTest extends MyCakeTestCase {
 
 
 		$address = 'Neustadt';
-		echo '<h2>'.$address.'</h2>';
+		//echo '<h2>'.$address.'</h2>';
 
 		# allow_inconclusive = TRUE
 		$this->Geocode->setOptions(array('allow_inconclusive'=>true, 'min_accuracy' => GeocodeLib::ACC_LOC));
 		$is = $this->Geocode->geocode($address);
-		echo 'debug:';
+		//echo 'debug:';
 		//pr($this->Geocode->debug());
-		echo 'debug end';
+		//echo 'debug end';
 		$this->assertTrue($is);
 
 		$res = $this->Geocode->getResult();

+ 5 - 5
Test/Case/Lib/GooglLibTest.php

@@ -33,7 +33,7 @@ class GooglLibTest extends CakeTestCase {
 
 
 	public function testShortenAndUnshorten() {
-		echo '<h2>Shorten without key (publically)</h2>';
+		//echo '<h2>Shorten without key (publically)</h2>';
 		Configure::write('Googl.key', '');
 
 		$url = 'http://www.spiegel.de';
@@ -42,7 +42,7 @@ class GooglLibTest extends CakeTestCase {
 		$res = $this->assertTrue(!empty($is) && is_array($is) && !empty($is['id']) && $is['kind'] === 'urlshortener#url' && $is['longUrl'] == $url.'/');
 
 
-		echo '<h2>Unshorten</h2>';
+		//echo '<h2>Unshorten</h2>';
 
 		$shortUrl = $is['id'];
 		$is = $this->Googl->getLong($shortUrl);
@@ -54,7 +54,7 @@ class GooglLibTest extends CakeTestCase {
 	public function testApi() {
 		$this->skipIf(!Configure::write('Googl.key'), 'No Api Key found');
 
-		echo '<h2>Shorten with key</h2>';
+		//echo '<h2>Shorten with key</h2>';
 
 		$url = 'http://www.gmx.de';
 		$is = $this->Googl->getShort($url);
@@ -62,7 +62,7 @@ class GooglLibTest extends CakeTestCase {
 		$res = $this->assertTrue(!empty($is) && is_array($is) && !empty($is['id']) && $is['kind'] === 'urlshortener#url' && $is['longUrl'] == $url.'/');
 
 
-		echo '<h2>Unshorten</h2>';
+		//echo '<h2>Unshorten</h2>';
 
 		$shortUrl = $is['id'];
 		$is = $this->Googl->getLong($shortUrl);
@@ -70,7 +70,7 @@ class GooglLibTest extends CakeTestCase {
 		$res = $this->assertTrue(!empty($is) && is_array($is) && !empty($is['id']) && $is['kind'] === 'urlshortener#url' && $is['status'] === 'OK' && $is['longUrl'] == $url.'/');
 
 
-		echo '<h2>FULL INFOS</h2>';
+		//echo '<h2>FULL INFOS</h2>';
 
 		$url = 'http://www.web.de#123456';
 		$is = $this->Googl->getShort($url);

+ 1 - 1
Test/Case/Lib/IcalLibTest.php

@@ -66,7 +66,7 @@ class IcalLibTest extends CakeTestCase {
 		$is = $this->Ical->parse($this->file);
 		$is = $this->Ical->getEventsAsList();
 		foreach ($is as $i => $val) {
-			echo date(FORMAT_NICE_YMD, $i).': '.h($val).BR;
+			//echo date(FORMAT_NICE_YMD, $i).': '.h($val).BR;
 		}
 		$this->assertTrue(!empty($is));
 	}

+ 3 - 3
Test/Case/Lib/Utility/FileLibTest.php

@@ -248,13 +248,13 @@ class FileLibTest extends CakeTestCase {
 		}
 
 		if ($pre !== null) {
-			echo 'pre:';
+			//echo 'pre:';
 			//pr($pre);
 		}
-		echo 'is:';
+		//echo 'is:';
 		//pr($is);
 		if (!$status) {
-			echo 'expected:';
+			//echo 'expected:';
 			//pr($expected);
 		}
 	}

+ 7 - 7
Test/Case/Lib/Utility/TimeLibTest.php

@@ -146,7 +146,7 @@ class TimeLibTest extends MyCakeTestCase {
 		);
 
 		foreach ($values as $v) {
-			echo $v[0].'/'.$v[1];
+			//echo $v[0].'/'.$v[1];
 			$ret = TimeLib::ageBounds($v[0], $v[1], true, '2011-07-06'); //TODO: relative time
 			//pr($ret);
 			if (isset($v[2])) {
@@ -432,7 +432,7 @@ class TimeLibTest extends MyCakeTestCase {
 	}
 
 	public function testParseDate() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$tests = array(
 			'2010-12-11' => 1292022000,
 			'2010-01-02' => 1262386800,
@@ -453,7 +453,7 @@ class TimeLibTest extends MyCakeTestCase {
 	}
 
 	public function testParseTime() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$tests = array(
 			'2:4' => 7440,
 			'2:04' => 7440,
@@ -491,7 +491,7 @@ class TimeLibTest extends MyCakeTestCase {
 	}
 
 	public function testBuildTime() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$tests = array(
 			7440 => '2:04',
 			7220 => '2:00', # 02:00:20 => rounded to 2:00:00
@@ -515,7 +515,7 @@ class TimeLibTest extends MyCakeTestCase {
 	}
 
 	public function testBuildDefaultTime() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$tests = array(
 			7440 => '02:04:00',
 			7220 => '02:00:20',
@@ -535,7 +535,7 @@ class TimeLibTest extends MyCakeTestCase {
 	 * 9.30 => 9.50
 	 */
 	public function testStandardDecimal() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$value = '9.30';
 		$is = TimeLib::standardToDecimalTime($value);
 		$this->assertEquals(round($is, 2), '9.50');
@@ -549,7 +549,7 @@ class TimeLibTest extends MyCakeTestCase {
 	 * 9.50 => 9.30
 	 */
 	public function testDecimalStandard() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$value = '9.50';
 		$is = TimeLib::decimalToStandardTime($value);
 		$this->assertEquals(round($is, 2), '9.3');

+ 1 - 1
Test/Case/Lib/Utility/UtilityTest.php

@@ -72,7 +72,7 @@ class UtilityTest extends MyCakeTestCase {
 		$this->assertEquals('http://spiegel.de', $res);
 
 		$res = Utility::cleanUrl('spiegel.de', true);
-		echo returns($res);
+		//echo returns($res);
 		$this->assertEquals('http://www.spiegel.de', $res);
 	}
 

+ 1 - 1
Test/Case/Model/Behavior/DecimalInputBehaviorTest.php

@@ -24,7 +24,7 @@ class DecimalInputBehaviorTest extends MyCakeTestCase {
 
 
 	public function testBasic() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$data = array(
 			'name' => 'some Name',
 			'set_rate' => '0,1',

+ 5 - 5
Test/Case/Model/Behavior/GeocoderBehaviorTest.php

@@ -108,7 +108,7 @@ class GeocoderBehaviorTest extends CakeTestCase {
 	 * geocoding tests using the google webservice
 	 */
 	public function testBasic() {
-		echo '<h3>'.__FUNCTION__.'</h3>';
+		//echo '<h3>'.__FUNCTION__.'</h3>';
 
 		$data = array(
 			'street' => 'Krebenweg 22',
@@ -143,7 +143,7 @@ class GeocoderBehaviorTest extends CakeTestCase {
 	}
 
 	public function testMinAccLow() {
-		echo '<h3>'.__FUNCTION__.'</h3>';
+		//echo '<h3>'.__FUNCTION__.'</h3>';
 
 		$this->Comment->Behaviors->unload('Geocoder');
 		$this->Comment->Behaviors->load('Tools.Geocoder', array('real'=>false, 'min_accuracy'=>0));
@@ -163,7 +163,7 @@ class GeocoderBehaviorTest extends CakeTestCase {
 	}
 
 	public function testMinAccHigh() {
-		echo '<h3>'.__FUNCTION__.'</h3>';
+		//echo '<h3>'.__FUNCTION__.'</h3>';
 
 		$this->Comment->Behaviors->unload('Geocoder');
 		$this->Comment->Behaviors->load('Tools.Geocoder', array('real'=>false, 'min_accuracy'=>4));
@@ -184,7 +184,7 @@ class GeocoderBehaviorTest extends CakeTestCase {
 
 
 	public function testMinInc() {
-		echo '<h3>'.__FUNCTION__.'</h3>';
+		//echo '<h3>'.__FUNCTION__.'</h3>';
 
 		$this->Comment->Behaviors->unload('Geocoder');
 		$this->Comment->Behaviors->load('Tools.Geocoder', array('real'=>false, 'min_accuracy'=>GeocodeLib::ACC_SUBLOC));
@@ -209,7 +209,7 @@ class GeocoderBehaviorTest extends CakeTestCase {
 	}
 
 	public function testMinIncAllowed() {
-		echo '<h3>'.__FUNCTION__.'</h3>';
+		//echo '<h3>'.__FUNCTION__.'</h3>';
 
 		$this->Comment->Behaviors->unload('Geocoder');
 		$this->Comment->Behaviors->load('Tools.Geocoder', array('real'=>false, 'allow_inconclusive'=>true));

+ 4 - 4
Test/Case/Model/Behavior/JsonableBehaviorTest.php

@@ -21,7 +21,7 @@ class JsonableBehaviorTest extends MyCakeTestCase {
 /** INPUT **/
 
 	public function testBasic() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		// accuracy >= 5
 		$data = array(
 			'comment' => 'blabla',
@@ -36,7 +36,7 @@ class JsonableBehaviorTest extends MyCakeTestCase {
 	}
 
 	public function testFieldsWithList() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$this->Comment->Behaviors->unload('Jsonable');
 		$this->Comment->Behaviors->load('Tools.Jsonable', array('fields'=>array('details'), 'input'=>'list'));
 
@@ -68,7 +68,7 @@ class JsonableBehaviorTest extends MyCakeTestCase {
 	}
 
 	public function testFieldsWithParam() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$this->Comment->Behaviors->unload('Jsonable');
 		$this->Comment->Behaviors->load('Tools.Jsonable', array('fields'=>array('details'), 'input'=>'param'));
 
@@ -89,7 +89,7 @@ class JsonableBehaviorTest extends MyCakeTestCase {
 /** OUTPUT **/
 
 	public function testFieldsOnFind() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		// array
 		$this->Comment->Behaviors->unload('Jsonable');

+ 1 - 1
Test/Case/Model/Behavior/NumberFormatBehaviorTest.php

@@ -24,7 +24,7 @@ class NumberFormatBehaviorTest extends MyCakeTestCase {
 
 
 	public function testBasic() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 		$data = array(
 			'name' => 'some Name',
 			'set_rate' => '0,1',

+ 3 - 3
Test/Case/View/Helper/DatetimeHelperTest.php

@@ -50,7 +50,7 @@ class DatetimeHelperTest extends MyCakeTestCase {
 	}
 
 	public function testRelLengthOfTime() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		$res = $this->Datetime->relLengthOfTime(date(FORMAT_DB_DATETIME, time()-3600));
 		//pr($res);
@@ -72,7 +72,7 @@ class DatetimeHelperTest extends MyCakeTestCase {
 
 	// Cake internal function...
 	public function testTimeAgoInWords() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		$res = $this->Datetime->timeAgoInWords(date(FORMAT_DB_DATETIME, time()-4*DAY-5*HOUR));
 		//pr($res);
@@ -80,7 +80,7 @@ class DatetimeHelperTest extends MyCakeTestCase {
 
 
 	public function testIsInRange() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		$day = date(FORMAT_DB_DATETIME, time()+10*DAY);
 

+ 2 - 2
Test/Case/View/Helper/FlattrHelperTest.php

@@ -26,7 +26,7 @@ class FlattrHelperTest extends MyCakeTestCase {
 
 	public function testBadge() {
 		$res = $this->Flattr->badge($this->uid, array());
-		echo $res;
+		//echo $res;
 		$this->assertTrue(!empty($res));
 	}
 
@@ -34,7 +34,7 @@ class FlattrHelperTest extends MyCakeTestCase {
 		$options = array('dsc'=>'Eine Beschreibung', 'lng'=>'de_DE', 'tags'=>array('Spende', 'Geld', 'Hilfe'));
 
 		$res = $this->Flattr->badge($this->uid, $options);
-		echo $res;
+		//echo $res;
 		$this->assertTrue(!empty($res));
 	}
 }

+ 13 - 13
Test/Case/View/Helper/FormatHelperTest.php

@@ -36,7 +36,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		);
 		foreach ($data as $key => $value) {
 			$res = $this->Format->disabledLink($content, $value);
-			echo ''.$res.' (\''.h($res).'\')';
+			//echo ''.$res.' (\''.h($res).'\')';
 			$this->assertTrue(!empty($res));
 		}
 	}
@@ -53,7 +53,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		);
 		foreach ($data as $key => $value) {
 			$res = $this->Format->warning($content.' '.(int)$value, $value);
-			echo ''.$res.'';
+			//echo ''.$res.'';
 			$this->assertTrue(!empty($res));
 		}
 	}
@@ -70,7 +70,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		);
 		foreach ($data as $key => $value) {
 			$res = $this->Format->ok($content.' '.(int)$value, $value);
-			echo ''.$res.'';
+			//echo ''.$res.'';
 			$this->assertTrue(!empty($res));
 		}
 	}
@@ -94,7 +94,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		);
 		foreach ($values as $key => $value) {
 			$res = $this->Format->priorityIcon($value[0], $value[1]);
-			echo $key;
+			//echo $key;
 			//debug($res, null, false);
 			$this->assertEquals($value[2], $res);
 		}
@@ -113,7 +113,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		foreach ($data as $key => $value) {
 			$res = $this->Format->shortenText($value, 30);
 
-			echo '\''.h($value).'\' becomes \''.$res.'\'';
+			//echo '\''.h($value).'\' becomes \''.$res.'\'';
 			$this->assertTrue(!empty($res));
 		}
 
@@ -156,7 +156,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		foreach ($mails as $mail => $expected) {
 			$res = $this->Format->hideEmail($mail);
 
-			echo '\''.$mail.'\' becomes \''.$res.'\' - expected \''.$expected.'\'';
+			//echo '\''.$mail.'\' becomes \''.$res.'\' - expected \''.$expected.'\'';
 			$this->assertEquals($expected, $res);
 		}
 
@@ -221,20 +221,20 @@ class FormatHelperTest extends MyCakeTestCase {
 */
 
 	public function testTab2space() {
-		echo '<h2>'.__FUNCTION__.'</h2>';
+		//echo '<h2>'.__FUNCTION__.'</h2>';
 
 		$text = "foo\t\tfoobar\tbla\n";
 		$text .= "fooo\t\tbar\t\tbla\n";
 		$text .= "foooo\t\tbar\t\tbla\n";
-		echo "<pre>" . $text . "</pre>";
-		echo'becomes';
-		echo "<pre>" . $this->Format->tab2space($text) . "</pre>";
+		//echo "<pre>" . $text . "</pre>";
+		//echo'becomes';
+		//echo "<pre>" . $this->Format->tab2space($text) . "</pre>";
 
 	}
 
 
 	public function testArray2table() {
-		echo '<h2>'.__FUNCTION__.'</h2>';
+		//echo '<h2>'.__FUNCTION__.'</h2>';
 		$array = array(
 			array('x'=>'0', 'y'=>'0.5', 'z'=>'0.9'),
 			array('1', '2', '3'),
@@ -242,7 +242,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		);
 
 		$is = $this->Format->array2table($array);
-		echo $is;
+		//echo $is;
 		//$this->assertEquals($expected, $is);
 
 		# recursive?
@@ -253,7 +253,7 @@ class FormatHelperTest extends MyCakeTestCase {
 		);
 
 		$is = $this->Format->array2table($array, array('recursive'=>true));
-		echo $is;
+		//echo $is;
 	}
 
 /**

+ 45 - 45
Test/Case/View/Helper/GoogleMapV3HelperTest.php

@@ -17,7 +17,7 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 	}
 
 	public function testMapUrl() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		$url = $this->GoogleMapV3->mapUrl(array('to'=>'Munich, Germany'));
 		$this->assertEquals('http://maps.google.com/maps?daddr=Munich%2C+Germany', $url);
@@ -27,26 +27,26 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 	}
 
 	public function testMapLink() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		$result = $this->GoogleMapV3->mapLink('<To Munich>!', array('to'=>'<Munich>, Germany'));
 		$expected = '<a href="http://maps.google.com/maps?daddr=%3CMunich%3E%2C+Germany">&lt;To Munich&gt;!</a>';
-		echo $result;
+		//echo $result;
 		$this->assertEquals($expected, $result);
 	}
 
 	public function testLinkWithMapUrl() {
-		echo $this->_header(__FUNCTION__);
+		//echo $this->_header(__FUNCTION__);
 
 		$url = $this->GoogleMapV3->mapUrl(array('to'=>'<München>, Germany'));
 		$result = $this->GoogleMapV3->Html->link('Some title', $url);
 		$expected = '<a href="http://maps.google.com/maps?daddr=%3CM%C3%BCnchen%3E%2C+Germany">Some title</a>';
-		echo $result;
+		//echo $result;
 		$this->assertEquals($expected, $result);
 	}
 
 	public function testStaticPaths() {
-		echo '<h2>Paths</h2>';
+		//echo '<h2>Paths</h2>';
 		$m = $this->pathElements = array(
 			array(
 				'path' => array('Berlin', 'Stuttgart'),
@@ -63,21 +63,21 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 		);
 
 		$is = $this->GoogleMapV3->staticPaths($m);
-		echo pr(h($is));
+		//echo pr(h($is));
 
 
 		$options = array(
 			'paths' => $is
 		);
 		$is = $this->GoogleMapV3->staticMapLink('My Title', $options);
-		echo h($is).BR.BR;
+		//echo h($is).BR.BR;
 
 		$is = $this->GoogleMapV3->staticMap($options);
-		echo $is;
+		//echo $is;
 	}
 
 	public function testStaticMarkers() {
-		echo '<h2>Markers</h2>';
+		//echo '<h2>Markers</h2>';
 		$m = $this->markerElements = array(
 			array(
 				'address' => '44.3,11.2',
@@ -94,7 +94,7 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 		);
 		$is = $this->GoogleMapV3->staticMap($options);
 		//debug($is);
-		echo $is;
+		//echo $is;
 	}
 
 
@@ -102,7 +102,7 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 //	http://maps.google.com/maps/api/staticmap?size=512x512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318&markers=color:red|color:red|label:C|40.718217,-73.998284&sensor=false
 
 	public function testStatic() {
-		echo '<h2>StaticMap</h2>';
+		//echo '<h2>StaticMap</h2>';
 		$m = array(
 			array(
 				'address' => 'Berlin',
@@ -125,32 +125,32 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 		//debug($options['markers']).BR;
 
 		$is = $this->GoogleMapV3->staticMapUrl($options);
-		echo h($is);
-		echo BR.BR;
+		//echo h($is);
+		//echo BR.BR;
 
 		$is = $this->GoogleMapV3->staticMapLink('MyLink', $options);
-		echo h($is);
-		echo BR.BR;
+		//echo h($is);
+		//echo BR.BR;
 
 		$is = $this->GoogleMapV3->staticMap($options);
-		echo h($is).BR;
-		echo $is;
-		echo BR.BR;
+		//echo h($is).BR;
+		//echo $is;
+		//echo BR.BR;
 
 		$options = array(
 			'size' => '200x100',
 			'center' => true
 		);
 		$is = $this->GoogleMapV3->staticMapLink('MyTitle', $options);
-		echo h($is);
-		echo BR.BR;
+		//echo h($is);
+		//echo BR.BR;
 		$attr = array(
 			'title'=>'<b>Yeah!</b>'
 		);
 		$is = $this->GoogleMapV3->staticMap($options, $attr);
-		echo h($is).BR;
-		echo $is;
-		echo BR.BR;
+		//echo h($is).BR;
+		//echo $is;
+		//echo BR.BR;
 
 
 		$pos = array(
@@ -164,10 +164,10 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 
 		$attr = array('url'=>$this->GoogleMapV3->mapUrl(array('to'=>'Munich, Germany')));
 		$is = $this->GoogleMapV3->staticMap($options, $attr);
-		echo h($is).BR;
-		echo $is;
+		//echo h($is).BR;
+		//echo $is;
 
-		echo BR.BR.BR;
+		//echo BR.BR.BR;
 
 		$url = $this->GoogleMapV3->mapUrl(array('to'=>'Munich, Germany'));
 		$attr = array(
@@ -175,18 +175,18 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 		);
 		$image = $this->GoogleMapV3->staticMap($options, $attr);
 		$link = $this->GoogleMapV3->Html->link($image, $url, array('escape'=>false, 'target'=>'_blank'));
-		echo h($link).BR;
-		echo $link;
+		//echo h($link).BR;
+		//echo $link;
 	}
 
 	public function testStaticMapWithStaticMapLink() {
-		echo '<h2>testStaticMapWithStaticMapLink</h2>';
+		//echo '<h2>testStaticMapWithStaticMapLink</h2>';
 		$markers = array();
 		$markers[] = array('lat'=>48.2, 'lng'=>11.1, 'color'=>'red');
 		$mapMarkers = $this->GoogleMapV3->staticMarkers($markers);
 
 		$staticMapUrl = $this->GoogleMapV3->staticMapUrl(array('center'=>48 . ',' . 11, 'markers'=>$mapMarkers, 'size'=>'640x510', 'zoom'=>6));
-		echo $this->GoogleMapV3->Html->link('Open Static Map', $staticMapUrl, array('class'=>'staticMap', 'title'=>__('click for full map'))); //, 'escape'=>false
+		//echo $this->GoogleMapV3->Html->link('Open Static Map', $staticMapUrl, array('class'=>'staticMap', 'title'=>__('click for full map'))); //, 'escape'=>false
 
 	}
 
@@ -199,7 +199,7 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 		);
 		foreach ($tests as $test) {
 			$is = $this->GoogleMapV3->iconSet($test[0], $test[1]);
-			echo $this->GoogleMapV3->Html->image($is['url']).BR;
+			//echo $this->GoogleMapV3->Html->image($is['url']).BR;
 		}
 
 	}
@@ -232,11 +232,11 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 	 * 2010-12-18 ms
 	 */
 	public function testDynamic() {
-		echo '<h2>Map 1</h2>';
-		echo '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>';
+		//echo '<h2>Map 1</h2>';
+		//echo '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>';
 		//echo $this->GoogleMapV3->map($defaul, array('style'=>'width:100%; height: 800px'));
-		echo '<script type="text/javascript" src="'.$this->GoogleMapV3->apiUrl().'"></script>';
-		echo '<script type="text/javascript" src="'.$this->GoogleMapV3->gearsUrl().'"></script>';
+		//echo '<script type="text/javascript" src="'.$this->GoogleMapV3->apiUrl().'"></script>';
+		//echo '<script type="text/javascript" src="'.$this->GoogleMapV3->gearsUrl().'"></script>';
 
 		$options = array(
 			'zoom'=>6,
@@ -265,7 +265,7 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 
 		$result .= $this->GoogleMapV3->script();
 
-		echo $result;
+		//echo $result;
 	}
 
 
@@ -274,14 +274,14 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 	 * 2010-12-18 ms
 	 */
 	public function testDynamic2() {
-		echo '<h2>Map 2</h2>';
+		//echo '<h2>Map 2</h2>';
 		$options = array(
 			'zoom'=>6, 'type'=>'H',
 			'autoCenter' => true,
 			'div' => array('id'=>'someother'), //'height'=>'111',
 			'map' => array('typeOptions' => array('style'=>'DROPDOWN_MENU'))
 		);
-		echo $this->GoogleMapV3->map($options);
+		//echo $this->GoogleMapV3->map($options);
 		$this->GoogleMapV3->addMarker(array('lat'=>47.69847,'lng'=>11.9514, 'title'=>'MarkerMUC', 'content'=>'Some more Html-<b>Content</b>'));
 
 		for ($i = 0; $i < 100; $i++) {
@@ -306,21 +306,21 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 
 		$this->GoogleMapV3->addCustom($js);
 
-		echo $this->GoogleMapV3->script();
+		//echo $this->GoogleMapV3->script();
 
-		echo '<a href="javascript:void(0)" class="mapAnchor" rel="m2">Marker2</a> ';
-		echo '<a href="javascript:void(0)" class="mapAnchor" rel="m3">Marker3</a>';
+		//echo '<a href="javascript:void(0)" class="mapAnchor" rel="m2">Marker2</a> ';
+		//echo '<a href="javascript:void(0)" class="mapAnchor" rel="m3">Marker3</a>';
 	}
 
 
 	public function testDynamic3() {
-		echo '<h2>Map with Directions</h2>';
+		//echo '<h2>Map with Directions</h2>';
 		$options = array(
 			'zoom'=>5,
 			'type'=>'H',
 			'map' => array()
 		);
-		echo $this->GoogleMapV3->map($options);
+		//echo $this->GoogleMapV3->map($options);
 
 
 
@@ -332,6 +332,6 @@ class GoogleMapV3HelperTest extends MyCakeTestCase {
 
 		$this->GoogleMapV3->addMarker(array('lat'=>45.69847,'lng'=>11.9514, 'title'=>'ManuelFromDirections', 'content'=>'<b>Bla</b>', 'directions'=>array('from'=>'Munich, Germany')));
 
-		echo $this->GoogleMapV3->script();
+		//echo $this->GoogleMapV3->script();
 	}
 }

+ 11 - 11
Test/Case/View/Helper/QrCodeHelperTest.php

@@ -60,15 +60,15 @@ class QrCodeHelperTest extends MyCakeTestCase {
 		$this->QrCode->reset();
 
 		$is = $this->QrCode->image(QR_TEST_STRING);
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 
 		$is = $this->QrCode->image(QR_TEST_STRING_UTF);
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 
 		$is = $this->QrCode->image('');
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 
 	}
@@ -83,13 +83,13 @@ class QrCodeHelperTest extends MyCakeTestCase {
 		$this->QrCode->reset();
 		$this->QrCode->setLevel('H');
 		$is = $this->QrCode->image(QR_TEST_STRING);
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 
 		$this->QrCode->reset();
 		$this->QrCode->setLevel('H', 20);
 		$is = $this->QrCode->image(QR_TEST_STRING_UTF);
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 
 
@@ -97,7 +97,7 @@ class QrCodeHelperTest extends MyCakeTestCase {
 		$this->QrCode->setSize(300);
 		$this->QrCode->setLevel('L', 1);
 		$is = $this->QrCode->image(QR_TEST_STRING);
-		echo $is;
+		//echo $is;
 		//pr($this->QrCode->debug());
 		$this->assertTrue(!empty($is));
 
@@ -105,7 +105,7 @@ class QrCodeHelperTest extends MyCakeTestCase {
 		$this->QrCode->setSize(300);
 		$this->QrCode->setLevel('H', 1);
 		$is = $this->QrCode->image(QR_TEST_STRING);
-		echo $is;
+		//echo $is;
 		//pr($this->QrCode->debug());
 		$this->assertTrue(!empty($is));
 	}
@@ -114,7 +114,7 @@ class QrCodeHelperTest extends MyCakeTestCase {
 		$this->QrCode->reset();
 		$this->QrCode->setSize(300);
 		$this->QrCode->setLevel('H');
-		echo 'CARD'.BR;
+		//echo 'CARD'.BR;
 		$string = $this->QrCode->formatCard(array(
 			'name' => 'Maier,Susanne',
 			'tel' => array('0111222123', '012224344'),
@@ -126,7 +126,7 @@ class QrCodeHelperTest extends MyCakeTestCase {
 			'url' => 'http://www.some_url.de'
 		));
 		$is = $this->QrCode->image($string);
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 	}
 
@@ -137,10 +137,10 @@ class QrCodeHelperTest extends MyCakeTestCase {
 		$this->QrCode->reset();
 		$this->QrCode->setSize(100);
 		$this->QrCode->setLevel('H');
-		echo 'CARD'.BR;
+		//echo 'CARD'.BR;
 		$string = $this->QrCode->format('bitcoin', '18pnDgDYFMAKsHTA3ZqyAi6t8q9ztaWWXt');
 		$is = $this->QrCode->image($string);
-		echo $is;
+		//echo $is;
 		$this->assertTrue(!empty($is));
 
 	}

+ 1 - 1
Test/Case/View/Helper/TextExtHelperTest.php

@@ -34,7 +34,7 @@ class TextExtHelperTest extends MyCakeTestCase {
 	//--></script> and more\'';
 		$result = $this->Text->autoLinkEmails($text, array('obfuscate'=>true));
 		//pr($text);
-		echo $result;
+		//echo $result;
 		//pr(h($result));
 		$this->assertNotEquals($result, $text);
 

+ 2 - 2
Test/Case/View/Helper/TypographyHelperTest.php

@@ -71,7 +71,7 @@ class TypographyHelperTest extends MyCakeTestCase {
 		);
 		foreach ($strs as $str => $expected) {
 			$result = $this->Typography->formatCharacters($str);
-			echo pre($result);
+			//echo pre($result);
 			$this->assertEquals($expected, $result);
 		}
 	}
@@ -88,7 +88,7 @@ paragraph and a
 	new line tabbed in.';
 
 		$res = $this->Typography->autoTypography($str);
-		echo pre($res);
+		//echo pre($res);
 		//debug($res);
 	}