public function testModifyPushConfig()
{
$config = ['hello' => 'world'];
$this->connection->modifyPushConfig(Argument::that(function ($args) use($config) {
if ($args['foo'] !== 'bar') {
return false;
}
if ($args['pushConfig'] !== $config) {
return false;
}
return true;
}))->shouldBeCalledTimes(1);
$this->subscription->setConnection($this->connection->reveal());
$this->subscription->modifyPushConfig($config, ['foo' => 'bar']);
}