Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
6 | public function testViewPopup(){ |
||
7 | |||
8 | //execute the contructor and check for the Object type and type attribute |
||
9 | $view = new ViewPopup(); |
||
10 | $this->assertInstanceOf('ViewPopup',$view); |
||
11 | $this->assertInstanceOf('SugarView',$view); |
||
12 | $this->assertAttributeEquals('list','type', $view); |
||
13 | |||
14 | unset($view); |
||
15 | } |
||
16 | |||
44 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.