OSDN Git Service

refactor unit test
[php-libraries/SimpleAnnotations.git] / tests / model / SomeClass.php
1 <?php
2
3 namespace frostbane\DocBlockReader\test\model;
4
5 use frostbane\DocBlockReader\Reader;
6 use PHPUnit\Framework\TestCase;
7
8 /**
9  * @number       1
10  * @string "123"
11  * @string2      abc
12  * @array ["a", "b"]
13  * @object {"x": "y"}
14  * @nested {"x": {"y": "z"}}
15  * @nestedArray {"x": {"y": ["z", "p"]}}
16  *
17  * @trueVar
18  * @null-var     null
19  * @string4 "null"
20  *
21  * @booleanTrue  true
22  * @string3      tRuE
23  * @booleanFalse false
24  * @string5 "true"
25  * @string6 "false"
26  * @booleanNull  null
27  *
28  */
29 class SomeClass extends TestCase
30 {
31     /**
32      * @number       1
33      * @string "123"
34      * @string2      abc
35      * @array ["a", "b"]
36      * @object {"x": "y"}
37      * @nested {"x": {"y": "z"}}
38      * @nestedArray {"x": {"y": ["z", "p"]}}
39      *
40      * @trueVar
41      * @null-var     null
42      * @string4 "null"
43      *
44      * @booleanTrue  true
45      * @string3      tRuE
46      * @booleanFalse false
47      * @string5 "true"
48      * @string6 "false"
49      * @booleanNull  null
50      *
51      */
52     public $myVar = "test";
53
54     /**
55      * @x 1
56      * @y yes!
57      */
58     private $myVar2;
59
60     /**
61      * @Lalala ["somejsonarray", "2"]
62      * @Lalala ["anotherjsonarray", "3"]
63      */
64     public $issue2;
65
66     /**
67      * @number       1
68      * @string "123"
69      * @string2      abc
70      * @array ["a", "b"]
71      * @object {"x": "y"}
72      * @nested {"x": {"y": "z"}}
73      * @nestedArray {"x": {"y": ["z", "p"]}}
74      *
75      * @trueVar
76      * @null-var     null
77      * @string4 "null"
78      *
79      * @booleanTrue  true
80      * @string3      tRuE
81      * @booleanFalse false
82      * @string5 "true"
83      * @string6 "false"
84      * @booleanNull  null
85      *
86      */
87     private function parserFixture()
88     {
89     }
90
91     private function parserEmptyFixture()
92     {
93     }
94
95     /**
96      * @var x
97      * @var2 1024
98      *
99      * @param string x
100      * @param integer y
101      * @param array z
102      */
103     private function parserMultiFixture()
104     {
105     }
106
107     /**
108      * @allowedRequest ["ajax", "post"]
109      * @postParam integer orderId
110      * @postParam array productIds
111      * @postParam string newValue
112      */
113     private function fixtureThree()
114     {
115
116     }
117
118     /**
119      * @get @post
120      * @ajax
121      * @postParam x
122      * @postParam y
123      * @postParam z
124      */
125     private function fixtureFour()
126     {
127     }
128
129     /**
130      * @trueVar1
131      * @trueVar2
132      */
133     private function fixtureFive()
134     {
135     }
136
137     /**
138      * @param string var1
139      * @param integer var2
140      */
141     private function fixtureVariableDeclarations()
142     {
143     }
144
145     /**
146      * @param false
147      */
148     private function fixtureBadVariableDeclarationsOne()
149     {
150     }
151
152     /**
153      * @param true
154      */
155     private function fixtureBadVariableDeclarationsTwo()
156     {
157     }
158 }