Completed
Push — CI ( ee6bd7...0f01dd )
by Adam
22:32
created

ViewAjaxTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testViewAjax() 0 9 1
1
<?php
2
3
class ViewAjaxTest extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
	
6
 	public function testViewAjax()
7
 	{
8
 		//execute the contructor and check for the Object type and attributes 		
9
 		$view = new ViewAjax();
10
 		$this->assertInstanceOf('ViewAjax',$view);
11
 		$this->assertInstanceOf('SugarView',$view);
12
 		$this->assertTrue( is_array($view->options));
13
 			
14
 	}
15
}
16