Test Failed
Push — CI ( 0f01dd...c95a04 )
by Adam
55:13
created

ViewSerializedTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 32
rs 10
c 1
b 0
f 1
1
<?php
2
3
class ViewSerializedTest extends PHPUnit_Framework_TestCase{
4
	
5
	public function testViewSerialized(){
6
		
7
		//execute the contructor and check for the Object type
8
		$view = new ViewSerialized();
9
		$this->assertInstanceOf('ViewSerialized',$view);
10
		$this->assertInstanceOf('SugarView',$view);
11
		
12
 	}
13
 	
14
 	//Incomplete Test. method uses exit() so it cannot be tested.
15
	public function testdisplay(){
16
		
17
		
18
		/* //this method call uses exit() so it cannot be tested as it forces the PHP unit to quite as well
19
		$view = new ViewSerialized();
20
		$view->bean = new User();
21
		
22
		ob_start();
23
		
24
		$view->display();
25
		
26
		$renderedContent = ob_get_contents();
27
		ob_end_clean();
28
		
29
		$this->assertGreaterThan(0,strlen($renderedContent));
30
		*/
31
		
32
		$this->markTestIncomplete('Can Not be implemented');
33
 	}
34
}
35
?>
36