1 | <?php |
||
8 | class DMSShortcodeHandlerTest extends SapphireTest |
||
|
|||
9 | { |
||
10 | protected static $fixture_file = 'dmstest.yml'; |
||
11 | |||
12 | public function testShortcodeOperation() |
||
36 | |||
37 | /** |
||
38 | * When the document is valid, the correct arguments are provided and some content is given, the content should |
||
39 | * be parsed and added into an anchor to the document |
||
40 | */ |
||
41 | public function testShortcodeWithContentReturnsParsedContentInLink() |
||
52 | |||
53 | /** |
||
54 | * An error page link should be returned if the arguments are not valid, empty or the document is not available etc. |
||
55 | * |
||
56 | * This only applies when an error page with a 404 error code exists. |
||
57 | */ |
||
58 | public function testReturnErrorPageWhenIdIsEmpty() |
||
64 | |||
65 | /** |
||
66 | * When invalid or no data is available to return from the arguments and no error page exists to use for a link, |
||
67 | * return a blank string |
||
68 | */ |
||
69 | public function testReturnEmptyStringWhenNoErrorPageExistsAndIdIsEmpty() |
||
73 | } |
||
74 |
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.