| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 17 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 27 | public function testGetValidate() | ||
| 28 |     { | ||
| 29 |         $object = $this->objFromFixture('Dynamic\\ShortURL\\ShortURL', 'one'); | ||
| 30 | $object->Title = ''; | ||
| 31 |         $this->setExpectedException('ValidationException'); | ||
| 32 | $object->write(); | ||
| 33 | |||
| 34 |         $this->objFromFixture('Dynamic\\ShortURL\\ShortURL', 'one'); | ||
| 35 | $object->URL = ''; | ||
| 36 |         $this->setExpectedException('ValidationException'); | ||
| 37 | $object->write(); | ||
| 38 | |||
| 39 |         $this->objFromFixture('Dynamic\\ShortURL\\ShortURL', 'one'); | ||
| 40 | $object->CampaignSource = ''; | ||
| 41 |         $this->setExpectedException('ValidationException'); | ||
| 42 | $object->write(); | ||
| 43 | } | ||
| 44 | |||
| 54 | } | 
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.