-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathTodoCommentUnitTest.inc
More file actions
80 lines (78 loc) · 1.54 KB
/
TodoCommentUnitTest.inc
File metadata and controls
80 lines (78 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* @file
* Test file for the todo standard.
*
* These are valid examples.
*
* @todo Valid.
* @todo Valid
* @todo Multiple words are valid.
* @todo Multiple words are valid
*
* These are all incorrect but can be fixed automatically.
*
* @TODO Error
* @ToDo Error
* @TODo Error
* @ToDO Error
* @todo: Error
* @todo : Error
* @to-do Error
* @TO-DO Error
* @To-Do Error
* @TO do Error
* @to do Error
* @todo- Error
* @todo - Error
* @todoError
* @todo Error
* todo Error
* TODO Error
* ToDo Error
* to-do Error
*
* These are all incorrect but cannot be fully fixed automatically.
*
* @todo
* @to-do
* @TODO
* @todo this should be uppercase
*/
/**
* Example function.
*/
function foo() {
// These are valid examples.
// @todo Valid.
// These are invalid since they don't start with a capital letter.
// @todo valid with lower-case first letter
// @todo $can start with a $
// @todo \also with backslash
// This is not a todo tag. It is a general comment and we do not want
// to do the standards checking here.
// These are all incorrect but can be fixed automatically.
// @TODO Error
// @ToDo Error
// @TODo Error
// @ToDO Error
// @todo: Error
// @todo : Error
// @to-do Error
// @TO-DO Error
// @To-Do Error
// @TO do Error
// @to do Error
// @todo Error
// @todo- Error
// @todo - Error
// @todoError
// todo Error
// TODO Error
// ToDo Error
// to-do Error
// These are all incorrect but cannot be fully fixed automatically.
// @todo
// @to-do
// @TODO
}