-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement oauthbearer token refresh cb setter
- Loading branch information
1 parent
b21a905
commit d26ded3
Showing
9 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--TEST-- | ||
RdKafka\Conf | ||
--SKIPIF-- | ||
<?php | ||
RD_KAFKA_VERSION >= 0x010100ff || die("skip librdkafka too old"); | ||
--FILE-- | ||
<?php | ||
|
||
$conf = new RdKafka\Conf(); | ||
|
||
echo "Setting consume callback\n"; | ||
$conf->setConsumeCb(function () { }); | ||
$dump = $conf->dump(); | ||
var_dump(isset($dump["consume_cb"])); | ||
|
||
echo "Setting offset_commit callback\n"; | ||
$conf->setOffsetCommitCb(function () { }); | ||
$dump = $conf->dump(); | ||
var_dump(isset($dump["offset_commit_cb"])); | ||
|
||
echo "Setting rebalance callback\n"; | ||
$conf->setRebalanceCb(function () { }); | ||
$dump = $conf->dump(); | ||
var_dump(isset($dump["rebalance_cb"])); | ||
|
||
echo "Setting oauth token bearer callback\n"; | ||
$conf->setOauthbearerTokenRefreshCb(function () {}); | ||
$dump = $conf->dump(); | ||
var_dump(isset($dump["oauthbearer_token_refresh_cb"])); | ||
|
||
--EXPECT-- | ||
Setting consume callback | ||
bool(true) | ||
Setting offset_commit callback | ||
bool(true) | ||
Setting rebalance callback | ||
bool(true) | ||
Setting oauth token bearer callback | ||
bool(true) |