Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testEditForm() |
||
27 | { |
||
28 | $handler = new DMSUploadField_ItemHandler(DMSUploadField::create('Test'), $this->document->ID); |
||
29 | $result = $handler->EditForm(); |
||
30 | |||
31 | $this->assertInstanceOf('Form', $result); |
||
32 | $this->assertInstanceOf('DMSDocument', $result->getRecord()); |
||
33 | $this->assertSame($this->document->ID, $result->getRecord()->ID); |
||
34 | } |
||
35 | } |
||
36 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.