File tree Expand file tree Collapse file tree 3 files changed +29
-22
lines changed Expand file tree Collapse file tree 3 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ x-dockerbuild-5: &dockerbuild-5
1919 - run : composer lint
2020
2121jobs :
22+ test-8.2 :
23+ << : *dockerbuild-phpdbg
24+ docker :
25+ - image : cimg/php:8.2-browsers
2226 test-8.0 :
2327 << : *dockerbuild-phpdbg
2428 docker :
@@ -52,6 +56,7 @@ workflows:
5256 version : 2
5357 check_compile :
5458 jobs :
59+ - test-8.2
5560 - test-8.0
5661 - test-7.4
5762 - test-7.3
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/5.7/phpunit.xsd"
4- bootstrap =" vendor/autoload.php"
5- backupGlobals =" false"
6- beStrictAboutCoversAnnotation =" true"
7- beStrictAboutOutputDuringTests =" true"
8- beStrictAboutTestsThatDoNotTestAnything =" true"
9- beStrictAboutTodoAnnotatedTests =" true"
10- colors =" true"
11- verbose =" true" >
12- <testsuite name =" unit" >
13- <directory suffix =" Test.php" >tests/UnitTests</directory >
14- </testsuite >
15-
16- <filter >
17- <whitelist processUncoveredFilesFromWhitelist =" true" >
18- <directory suffix =" .php" >src</directory >
19- </whitelist >
20- </filter >
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap =" vendor/autoload.php" backupGlobals =" false" beStrictAboutCoversAnnotation =" true" beStrictAboutOutputDuringTests =" true" beStrictAboutTestsThatDoNotTestAnything =" true" beStrictAboutTodoAnnotatedTests =" true" colors =" true" verbose =" true" >
3+ <coverage processUncoveredFiles =" true" >
4+ <include >
5+ <directory suffix =" .php" >src</directory >
6+ </include >
7+ </coverage >
8+ <testsuite name =" unit" >
9+ <directory suffix =" Test.php" >tests/UnitTests</directory >
10+ </testsuite >
2111</phpunit >
Original file line number Diff line number Diff line change @@ -65,6 +65,18 @@ class DogStatsd
6565 */
6666 private $ metricPrefix ;
6767
68+ // Telemetry
69+ private $ disable_telemetry ;
70+ private $ telemetry_tags ;
71+ private $ metrics_sent ;
72+ private $ events_sent ;
73+ private $ service_checks_sent ;
74+ private $ bytes_sent ;
75+ private $ bytes_dropped ;
76+ private $ packets_sent ;
77+ private $ packets_dropped ;
78+
79+
6880 private static $ eventUrl = '/api/v1/events ' ;
6981
7082 // Used for the telemetry tags
@@ -510,7 +522,7 @@ public function flush($message)
510522 * @param array $vals Optional values of the event. See
511523 * https://docs.datadoghq.com/api/?lang=bash#post-an-event
512524 * for the valid keys
513- * @return null
525+ * @return bool
514526 **/
515527 public function event ($ title , $ vals = array ())
516528 {
@@ -602,7 +614,7 @@ public function event($title, $vals = array())
602614 *
603615 * @param array $vals Optional values of the event. See
604616 * https://docs.datadoghq.com/api/?lang=bash#post-an-event for the valid keys
605- * @return null
617+ * @return bool
606618 */
607619 private function eventUdp ($ vals )
608620 {
@@ -631,7 +643,7 @@ private function eventUdp($vals)
631643 $ this ->events_sent += 1 ;
632644 $ this ->report ('_e{ ' . $ title_length . ', ' . $ text_length . '}: ' . $ fields );
633645
634- return null ;
646+ return true ;
635647 }
636648
637649 /**
You can’t perform that action at this time.
0 commit comments