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

ViewHtmlTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 27
rs 10
c 1
b 0
f 1
1
<?php
2
3
class ViewHtmlTest extends PHPUnit_Framework_TestCase
4
{
5
6
	public function testViewHtml(){
7
		
8
		//execute the contructor and check for the Object type
9
		$view = new ViewHtml();
10
		$this->assertInstanceOf('ViewHtml',$view);
11
		$this->assertInstanceOf('SugarView',$view);
12
13
		
14
 	}
15
 	
16
 	public function testdisplay(){
17
 		
18
 		$view = new ViewHtml();
19
 		 
20
 		//execute the method and test if it works and does not throws an exception.
21
 		try {
22
 			$view->display();
23
 			 
24
 		} catch (Exception $e) {
25
 			$this->fail();
26
 		}
27
 	}
28
 	
29
}
30
?>
31