File tree 4 files changed +19
-9
lines changed
4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 25
25
"Acelot\\ Helpers\\ " : " src"
26
26
},
27
27
"files" : [
28
+ " src/repeat_helper.php" ,
28
29
" src/array_helpers.php" ,
29
30
" src/path_helpers.php" ,
30
31
" src/date_helpers.php" ,
31
32
" src/retry_helpers.php" ,
32
- " src/string_helpers.php" ,
33
- " src/repeat_helper.php"
33
+ " src/string_helpers.php"
34
34
]
35
35
},
36
36
"autoload-dev" : {
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
- namespace Acelot \Helpers ;
3
+ namespace Acelot \Helpers \ Repeat ;
4
4
5
5
const SECONDS = 1000000 ;
6
6
const MILLISECONDS = 1000 ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace Acelot \Helpers ;
4
4
5
+ use const Acelot \Helpers \Repeat \SECONDS as REPEAT_SECONDS ;
6
+ use const Acelot \Helpers \Repeat \MILLISECONDS as REPEAT_MILLISECONDS ;
7
+ use function Acelot \Helpers \Repeat \max_attempts ;
8
+ use function Acelot \Helpers \Repeat \pause ;
9
+ use function Acelot \Helpers \Repeat \repeat ;
10
+ use function Acelot \Helpers \Repeat \timeout ;
11
+
12
+ const SECONDS = REPEAT_SECONDS ;
13
+ const MILLISECONDS = REPEAT_MILLISECONDS ;
14
+
5
15
/**
6
16
* Repeats the callback until the answer is returned or timeout occurs.
7
17
*
Original file line number Diff line number Diff line change 2
2
3
3
namespace Acelot \Helpers \Tests ;
4
4
5
- use function Acelot \Helpers \catch_only ;
6
- use function Acelot \Helpers \max_attempts ;
7
- use const Acelot \Helpers \MILLISECONDS ;
8
- use function Acelot \Helpers \pause ;
9
- use function Acelot \Helpers \repeat ;
10
- use function Acelot \Helpers \timeout ;
5
+ use const Acelot \Helpers \Repeat \ MILLISECONDS ;
6
+ use function Acelot \Helpers \Repeat \ catch_only ;
7
+ use function Acelot \Helpers \Repeat \ max_attempts ;
8
+ use function Acelot \Helpers \Repeat \ pause ;
9
+ use function Acelot \Helpers \Repeat \ repeat ;
10
+ use function Acelot \Helpers \Repeat \ timeout ;
11
11
use PHPUnit \Framework \TestCase ;
12
12
13
13
class RepeatHelperTest extends TestCase
You can’t perform that action at this time.
0 commit comments