| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 10 | 	public function testCreateView() { | 
            ||
| 11 | 		$defaultView = ViewFactory::create('this-page-doent-exist'); | 
            ||
| 12 | $this->assertFalse($defaultView->exists());  | 
            ||
| 13 | |||
| 14 | 		$indexView = ViewFactory::create('index'); | 
            ||
| 15 | $this->assertTrue($indexView->exists());  | 
            ||
| 16 | |||
| 17 | $urlFragments = ['index'];  | 
            ||
| 18 | 		$otherView = ViewFactory::create('this-page-doent-exist', $urlFragments); | 
            ||
| 19 | $this->assertTrue($otherView->exists());  | 
            ||
| 20 | |||
| 21 | $urlFragments2 = ['index', 'this-subpage-doent-exit'];  | 
            ||
| 22 | 		$otherView2 = ViewFactory::create('this-page-doent-exist', $urlFragments2); | 
            ||
| 23 | $this->assertFalse($otherView2->exists());  | 
            ||
| 24 | }  | 
            ||
| 25 | |||
| 35 |