File tree Expand file tree Collapse file tree 6 files changed +10
-24
lines changed Expand file tree Collapse file tree 6 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 1
- <phpunit bootstrap =" vendor/autoload.php" colors =" true" verbose =" true" >
1
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/8.2/phpunit.xsd"
3
+ bootstrap =" vendor/autoload.php"
4
+ colors =" true"
5
+ verbose =" true" >
2
6
<testsuites >
3
7
<testsuite name =" RdKafka extension tests" >
4
8
<directory suffix =" .php" >tests/</directory >
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ public function addBrokers($broker_list)
18
18
}
19
19
20
20
/**
21
- * @param bool $all_topics
22
- * @param Topic $only_topic
23
- * @param int $timeout_ms
21
+ * @param bool $all_topics
22
+ * @param Topic|null $only_topic
23
+ * @param int $timeout_ms
24
24
*
25
25
* @throws Exception
26
26
* @return Metadata
Original file line number Diff line number Diff line change 8
8
class Conf
9
9
{
10
10
/**
11
- * @return array
11
+ * @return array<string, string>
12
12
*/
13
13
public function dump ()
14
14
{
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function commitAsync($message_or_offsets = null)
42
42
}
43
43
44
44
/**
45
- * @param string $timeout_ms
45
+ * @param int $timeout_ms
46
46
*
47
47
* @throws Exception
48
48
* @throws \InvalidArgumentException
Original file line number Diff line number Diff line change @@ -68,13 +68,4 @@ public function testPoll()
68
68
69
69
$ this ->markTestIncomplete ('Create real test and trigger a callback using poll() ' );
70
70
}
71
-
72
- public function testSetLogLevel ()
73
- {
74
- $ this ->expectException (Deprecated::class);
75
-
76
- $ this ->consumer ->setLogLevel (LOG_DEBUG );
77
-
78
- $ this ->markTestIncomplete ('Create real test ' );
79
- }
80
71
}
Original file line number Diff line number Diff line change @@ -75,15 +75,6 @@ public function testPoll()
75
75
self ::assertStringEqualsFile ($ this ->filename , self ::MESSAGE_PAYLOAD );
76
76
}
77
77
78
- public function testSetLogLevel ()
79
- {
80
- $ this ->expectException (Deprecated::class);
81
-
82
- $ this ->producer ->setLogLevel (LOG_DEBUG );
83
-
84
- self ::markTestIncomplete ('Create real test ' );
85
- }
86
-
87
78
public function testInitTransactions ()
88
79
{
89
80
$ configuration = new Conf ();
You can’t perform that action at this time.
0 commit comments