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