| 1 | <?php |
||
| 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 |