Skip to content
This repository
Browse code

fixing some test cases

  • Loading branch information...
commit f9f67a17598a4bea724a902820444d6a2ca60907 1 parent c1b919a
authored August 02, 2009
4  cake/tests/cases/basics.test.php
@@ -588,7 +588,7 @@ function testDebug() {
588 588
 		ob_start();
589 589
 			debug('this-is-a-test');
590 590
 		$result = ob_get_clean();
591  
-		$pattern = '/.*\>(.+?cake(\/|\\\)tests(\/|\\\)cases(\/|\\\)basics\.test\.php|';
  591
+		$pattern = '/.*\>(.+?tests(\/|\\\)cases(\/|\\\)basics\.test\.php|';
592 592
 		$pattern .= preg_quote(substr(__FILE__, 1), '/') . ')';
593 593
 		$pattern .= '.*line.*' . (__LINE__ - 4) . '.*this-is-a-test.*/s';
594 594
 		$this->assertPattern($pattern, $result);
@@ -596,7 +596,7 @@ function testDebug() {
596 596
 		ob_start();
597 597
 			debug('<div>this-is-a-test</div>', true);
598 598
 		$result = ob_get_clean();
599  
-		$pattern = '/.*\>(.+?cake(\/|\\\)tests(\/|\\\)cases(\/|\\\)basics\.test\.php|';
  599
+		$pattern = '/.*\>(.+?tests(\/|\\\)cases(\/|\\\)basics\.test\.php|';
600 600
 		$pattern .= preg_quote(substr(__FILE__, 1), '/') . ')';
601 601
 		$pattern .=	'.*line.*' . (__LINE__ - 4) . '.*&lt;div&gt;this-is-a-test&lt;\/div&gt;.*/s';
602 602
 		$this->assertPattern($pattern, $result);
17  cake/tests/cases/libs/view/helpers/xml.test.php
@@ -242,24 +242,7 @@ function testSerializeOnMultiDimensionalArray() {
242 242
 		$this->assertIdentical($result, $expected);
243 243
 
244 244
 	}
245  
-/**
246  
- * testSerializeOnMultiDimensionalArray method
247  
- *
248  
- * @access public
249  
- * @return void
250  
- */
251  
-	function testSerializeOnMultiDimensionalArray() {
252  
-		$data = array(
253  
-			'Statuses' => array(
254  
-				array('Status' => array('id' => 1)),
255  
-				array('Status' => array('id' => 2))
256  
-			)
257  
-		);
258  
-		$result = $this->Xml->serialize($data, array('format' => 'tags'));
259  
-		$expected = '<statuses><status><id>1</id></status><status><id>2</id></status></statuses>';
260  
-		$this->assertIdentical($result, $expected);
261 245
 
262  
-	}
263 246
 /**
264 247
  * testHeader method
265 248
  *

0 notes on commit f9f67a1

Please sign in to comment.
Something went wrong with that request. Please try again.