File tree Expand file tree Collapse file tree 6 files changed +35
-16
lines changed Expand file tree Collapse file tree 6 files changed +35
-16
lines changed Original file line number Diff line number Diff line change 1
1
version : 2 # use CircleCI 2.0
2
2
3
- x-dockerbuild-7 : &dockerbuild-7
3
+ x-dockerbuild-phpdbg : &dockerbuild-phpdbg
4
4
steps :
5
5
- checkout
6
6
- run : sudo docker-php-ext-install sockets
@@ -19,16 +19,32 @@ x-dockerbuild-5: &dockerbuild-5
19
19
- run : composer lint
20
20
21
21
jobs :
22
+ test-8.1 :
23
+ << : *dockerbuild-phpdbg
24
+ docker :
25
+ - image : circleci/php:8.1-node-browsers
26
+ test-8.0 :
27
+ << : *dockerbuild-phpdbg
28
+ docker :
29
+ - image : circleci/php:8.0-node-browsers
30
+ test-7.4 :
31
+ << : *dockerbuild-phpdbg
32
+ docker :
33
+ - image : circleci/php:7.4-node-browsers
34
+ test-7.3 :
35
+ << : *dockerbuild-phpdbg
36
+ docker :
37
+ - image : circleci/php:7.3-node-browsers
22
38
test-7.2 :
23
- << : *dockerbuild-7
39
+ << : *dockerbuild-phpdbg
24
40
docker :
25
41
- image : circleci/php:7.2-node-browsers
26
42
test-7.1 :
27
- << : *dockerbuild-7
43
+ << : *dockerbuild-phpdbg
28
44
docker :
29
45
- image : circleci/php:7.1-node-browsers
30
46
test-7.0 :
31
- << : *dockerbuild-7
47
+ << : *dockerbuild-phpdbg
32
48
docker :
33
49
- image : circleci/php:7.0-node-browsers
34
50
test-5.6 :
@@ -40,6 +56,10 @@ workflows:
40
56
version : 2
41
57
check_compile :
42
58
jobs :
59
+ - test-8.1
60
+ - test-8.0
61
+ - test-7.4
62
+ - test-7.3
43
63
- test-7.2
44
64
- test-7.1
45
65
- test-7.0
Original file line number Diff line number Diff line change 49
49
"sort-packages" : true
50
50
},
51
51
"require-dev" : {
52
- "phpunit /phpunit" : " 5.7.27 " ,
52
+ "yoast /phpunit-polyfills " : " ^1.0.1 " ,
53
53
"squizlabs/php_codesniffer" : " ^3.3"
54
54
},
55
55
"scripts" : {
Original file line number Diff line number Diff line change 2
2
3
3
namespace DataDog \TestHelpers ;
4
4
5
- use PHPUnit \ Framework \TestCase ;
5
+ use Yoast \ PHPUnitPolyfills \ TestCases \TestCase ;
6
6
7
7
$ curlSpy = new CurlSpy ();
8
8
@@ -11,13 +11,12 @@ class CurlSpyTestCase extends TestCase
11
11
/**
12
12
* Set up a spy object to capture calls to built in curl functions
13
13
*/
14
- protected function setUp ()
14
+ protected function set_up ()
15
15
{
16
16
global $ curlSpy ;
17
17
18
18
$ curlSpy = new CurlSpy ();
19
-
20
- parent ::setUp ();
19
+ parent ::set_up ();
21
20
}
22
21
23
22
/**
Original file line number Diff line number Diff line change 3
3
namespace DataDog \TestHelpers ;
4
4
5
5
use DataDog \DogStatsd ;
6
- use PHPUnit \ Framework \TestCase ;
6
+ use Yoast \ PHPUnitPolyfills \ TestCases \TestCase ;
7
7
8
8
/**
9
9
* Making this variable global to this file is necessary for interacting with
@@ -24,13 +24,13 @@ class SocketSpyTestCase extends TestCase
24
24
/**
25
25
* Set up a spy object to capture calls to global built in socket functions
26
26
*/
27
- protected function setUp ()
27
+ protected function set_up ()
28
28
{
29
29
global $ socketSpy ;
30
30
31
31
$ socketSpy = new SocketSpy ();
32
32
33
- parent ::setUp ();
33
+ parent ::set_up ();
34
34
}
35
35
36
36
/**
Original file line number Diff line number Diff line change 8
8
9
9
class BatchedDogStatsdTest extends SocketSpyTestCase
10
10
{
11
- protected function setUp ()
11
+ protected function set_up ()
12
12
{
13
- parent ::setUp ();
13
+ parent ::set_up ();
14
14
15
15
// Flush the buffer to reset state for next test
16
16
BatchedDogStatsd::$ maxBufferLength = 50 ;
Original file line number Diff line number Diff line change 9
9
10
10
class SocketsTest extends SocketSpyTestCase
11
11
{
12
- public function setUp ()
12
+ public function set_up ()
13
13
{
14
- parent ::setUp ();
14
+ parent ::set_up ();
15
15
16
16
// Reset the stubs for mt_rand() and mt_getrandmax()
17
17
global $ mt_rand_stub_return_value ;
You can’t perform that action at this time.
0 commit comments