Skip to content

Commit 261ae76

Browse files
committed
update stubs to new namespace
1 parent fb8890f commit 261ae76

37 files changed

+5137
-2
lines changed

classes/atoum.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<?php
22

3+
/**
4+
* @method $this and(...$mixed)
5+
* @method $this as($alias)
6+
* @method $this if(...$mixed)
7+
* @method $this use($target)
8+
*/
39
class atoum extends atoum\test {}

classes/atoum/atoum.php

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
<?php
2+
3+
namespace atoum;
4+
5+
use
6+
atoum,
7+
atoum\atoum\stubs,
8+
atoum\atoum\stubs\asserters,
9+
atoum\atoum\test,
10+
atoum\atoum\php,
11+
atoum\atoum\mock
12+
;
13+
14+
/**
15+
* @method $this and(...$mixed)
16+
* @method $this as($alias)
17+
* @method $this if(...$mixed)
18+
* @method $this use($target)
19+
*/
20+
class atoum extends test
21+
{
22+
use stubs\asserters;
23+
24+
/**
25+
* @var static
26+
*/
27+
public $and;
28+
29+
/**
30+
* @var static
31+
*/
32+
public $assert;
33+
34+
/**
35+
* @var test\assertion\aliaser
36+
*/
37+
public $define;
38+
39+
/**
40+
* @var \exception
41+
*/
42+
public $exception;
43+
44+
/**
45+
* @var php\mocker
46+
*/
47+
public $function;
48+
49+
/**
50+
* @var static
51+
*/
52+
public $given;
53+
54+
/**
55+
* @var static
56+
*/
57+
public $if;
58+
59+
/**
60+
* @var object
61+
*/
62+
public $newInstance;
63+
64+
/**
65+
* @var object
66+
*/
67+
public $newTestedInstance;
68+
69+
/**
70+
* @var asserters\testedClass
71+
*/
72+
public $testedClass;
73+
74+
/**
75+
* @var object
76+
*/
77+
public $testedInstance;
78+
79+
/**
80+
* @var static
81+
*/
82+
public $then;
83+
84+
/**
85+
* @param mock\aggregator $mock
86+
*
87+
* @return mock\controller
88+
*/
89+
public function ƒ(mock\aggregator $mock) {}
90+
91+
/**
92+
* @param string $case
93+
*
94+
* @return $this
95+
*/
96+
public function assert($case = null) {}
97+
98+
/**
99+
* @param mock\aggregator $mock
100+
*
101+
* @return mock\controller
102+
*/
103+
public function calling(mock\aggregator $mock) {}
104+
105+
/**
106+
* @param mixed ...$mixed
107+
*
108+
* @return $this
109+
*/
110+
public function define(...$mixed) {}
111+
112+
/**
113+
* @param ...$mixed
114+
*
115+
* @return $this
116+
*/
117+
public function dump(...$mixed) {}
118+
119+
/**
120+
* @param mixed $mixed
121+
*
122+
* @return $this
123+
*/
124+
public function dumpOnFailure($mixed) {}
125+
126+
/**
127+
* @param \closure $callback
128+
*
129+
* @return $this
130+
*/
131+
public function executeOnFailure(\closure $callback) {}
132+
133+
/**
134+
* @param string $class
135+
*
136+
* @return $this
137+
*/
138+
public function from($class) {}
139+
140+
/**
141+
* @param mixed ...$mixed
142+
*
143+
* @return $this
144+
*/
145+
public function given(...$mixed) {}
146+
147+
/**
148+
* @param mixed ...$mixed
149+
*
150+
* @return $this
151+
*/
152+
public function let(...$mixed) {}
153+
154+
/**
155+
* @param string $class
156+
* @param string $mockNamespace
157+
* @param string $mockClass
158+
*
159+
* @return $this
160+
*/
161+
public function mockClass($class, $mockNamespace = null, $mockClass = null) {}
162+
163+
/**
164+
* @param mixed ...$mixed
165+
*
166+
* @return mock\generator
167+
*/
168+
public function mockGenerator() {}
169+
170+
/**
171+
* @param string $mockNamespace
172+
* @param string $mockClass
173+
*
174+
* @return $this
175+
*/
176+
public function mockTestedClass($mockNamespace = null, $mockClass = null) {}
177+
178+
/**
179+
* @param mixed ...$arguments
180+
*
181+
* @return object
182+
*/
183+
public function newTestedInstance(...$arguments) {}
184+
185+
/**
186+
* @param mixed ...$arguments
187+
*
188+
* @return object
189+
*/
190+
public function newInstance(...$arguments) {}
191+
192+
/**
193+
* @throws test\exceptions\stop
194+
*
195+
* @return $this
196+
*/
197+
public function stop() {}
198+
199+
/**
200+
* @param mixed ...$mixed
201+
*
202+
* @return $this
203+
*/
204+
public function then(...$mixed) {}
205+
206+
/**
207+
* @param \closure|mixed $mixed
208+
*
209+
* @return $this
210+
*/
211+
public function when($mixed) {}
212+
213+
/**
214+
* @param test\adapter $adapter
215+
*
216+
* @return asserters\adapter
217+
*/
218+
public function adapter(test\adapter $adapter) {}
219+
220+
/**
221+
* @param string $class
222+
* @param string $mockNamespace
223+
* @param string $mockClass
224+
* @param array $constructorArguments
225+
*
226+
* @return object
227+
*/
228+
public function newMockInstance($class, $mockNamespace = null, $mockClass = null, ?array $constructorArguments = null) {}
229+
230+
/**
231+
* Allow to initialize the execution environment of the individual tests for all test method of the class.
232+
*
233+
* @param string $method
234+
*
235+
* @see http://docs.atoum.org/en/latest/fine_tuning.html#the-initialization-methods
236+
*/
237+
public function beforeTestMethod($method) {}
238+
239+
/**
240+
* Allow to clean up the execution environment of the individual tests for all test method of the class.
241+
*
242+
* @param string $method
243+
*
244+
* @see http://docs.atoum.org/en/latest/fine_tuning.html#the-initialization-methods
245+
*/
246+
public function afterTestMethod($method) {}
247+
248+
/**
249+
* Executed *before all* tests methods, so it's run once
250+
* @see http://docs.atoum.org/en/latest/fine_tuning.html#the-initialization-methods
251+
*/
252+
public function setUp() {}
253+
254+
/**
255+
* Executed once all the test of the class have been processed
256+
* @see http://docs.atoum.org/en/latest/fine_tuning.html#the-initialization-methods
257+
*/
258+
public function tearDown() {}
259+
}
260+

0 commit comments

Comments
 (0)