File tree Expand file tree Collapse file tree 6 files changed +30
-16
lines changed Expand file tree Collapse file tree 6 files changed +30
-16
lines changed Original file line number Diff line number Diff line change 11version : 2 # use CircleCI 2.0
22
3- x-dockerbuild-7 : &dockerbuild-7
3+ x-dockerbuild-phpdbg : &dockerbuild-phpdbg
44 steps :
55 - checkout
66 - run : sudo docker-php-ext-install sockets
@@ -19,16 +19,28 @@ x-dockerbuild-5: &dockerbuild-5
1919 - run : composer lint
2020
2121jobs :
22+ test-8.0 :
23+ << : *dockerbuild-phpdbg
24+ docker :
25+ - image : circleci/php:8.0-node-browsers
26+ test-7.4 :
27+ << : *dockerbuild-phpdbg
28+ docker :
29+ - image : circleci/php:7.4-node-browsers
30+ test-7.3 :
31+ << : *dockerbuild-phpdbg
32+ docker :
33+ - image : circleci/php:7.3-node-browsers
2234 test-7.2 :
23- << : *dockerbuild-7
35+ << : *dockerbuild-phpdbg
2436 docker :
2537 - image : circleci/php:7.2-node-browsers
2638 test-7.1 :
27- << : *dockerbuild-7
39+ << : *dockerbuild-phpdbg
2840 docker :
2941 - image : circleci/php:7.1-node-browsers
3042 test-7.0 :
31- << : *dockerbuild-7
43+ << : *dockerbuild-phpdbg
3244 docker :
3345 - image : circleci/php:7.0-node-browsers
3446 test-5.6 :
@@ -40,6 +52,9 @@ workflows:
4052 version : 2
4153 check_compile :
4254 jobs :
55+ - test-8.0
56+ - test-7.4
57+ - test-7.3
4358 - test-7.2
4459 - test-7.1
4560 - test-7.0
Original file line number Diff line number Diff line change 4949 "sort-packages" : true
5050 },
5151 "require-dev" : {
52- "phpunit /phpunit" : " 5.7.27 " ,
52+ "yoast /phpunit-polyfills " : " ^1.0.1 " ,
5353 "squizlabs/php_codesniffer" : " ^3.3"
5454 },
5555 "scripts" : {
Original file line number Diff line number Diff line change 22
33namespace DataDog \TestHelpers ;
44
5- use PHPUnit \ Framework \TestCase ;
5+ use Yoast \ PHPUnitPolyfills \ TestCases \TestCase ;
66
77$ curlSpy = new CurlSpy ();
88
@@ -11,13 +11,12 @@ class CurlSpyTestCase extends TestCase
1111 /**
1212 * Set up a spy object to capture calls to built in curl functions
1313 */
14- protected function setUp ()
14+ protected function set_up ()
1515 {
1616 global $ curlSpy ;
1717
1818 $ curlSpy = new CurlSpy ();
19-
20- parent ::setUp ();
19+ parent ::set_up ();
2120 }
2221
2322 /**
Original file line number Diff line number Diff line change 33namespace DataDog \TestHelpers ;
44
55use DataDog \DogStatsd ;
6- use PHPUnit \ Framework \TestCase ;
6+ use Yoast \ PHPUnitPolyfills \ TestCases \TestCase ;
77
88/**
99 * Making this variable global to this file is necessary for interacting with
@@ -24,13 +24,13 @@ class SocketSpyTestCase extends TestCase
2424 /**
2525 * Set up a spy object to capture calls to global built in socket functions
2626 */
27- protected function setUp ()
27+ protected function set_up ()
2828 {
2929 global $ socketSpy ;
3030
3131 $ socketSpy = new SocketSpy ();
3232
33- parent ::setUp ();
33+ parent ::set_up ();
3434 }
3535
3636 /**
Original file line number Diff line number Diff line change 88
99class BatchedDogStatsdTest extends SocketSpyTestCase
1010{
11- protected function setUp ()
11+ protected function set_up ()
1212 {
13- parent ::setUp ();
13+ parent ::set_up ();
1414
1515 // Flush the buffer to reset state for next test
1616 BatchedDogStatsd::$ maxBufferLength = 50 ;
Original file line number Diff line number Diff line change 99
1010class SocketsTest extends SocketSpyTestCase
1111{
12- public function setUp ()
12+ public function set_up ()
1313 {
14- parent ::setUp ();
14+ parent ::set_up ();
1515
1616 // Reset the stubs for mt_rand() and mt_getrandmax()
1717 global $ mt_rand_stub_return_value ;
You can’t perform that action at this time.
0 commit comments