| 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 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.