Skip to content

Commit

Permalink
chevere 4
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Dec 19, 2023
1 parent 4304c68 commit 0057da6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion composer.json
Expand Up @@ -19,11 +19,16 @@
"require": {
"ext-curl": "*",
"ext-json": "*",
"chevere/chevere": "^4.0.x-dev",
"chevere/action": "^1.0.x-dev",
"chevere/filesystem": "^1.0.x-dev",
"chevere/http": "^0.4.x-dev",
"chevere/iterator": "^1.0.x-dev",
"chevere/message": "^0.1.x-dev",
"chevere/parameter": "^1.0.x-dev",
"chevere/throwable-handler": "^0.12.x-dev",
"chevere/trace": "^0.10.x-dev",
"chevere/var-dump": "^0.10.x-dev",
"chevere/writer": "^1.0.x-dev",
"phpseclib/phpseclib": "~3.0",
"ramsey/uuid": "^4.7"
},
Expand Down
3 changes: 1 addition & 2 deletions src/Interfaces/MessageInterface.php
Expand Up @@ -13,13 +13,12 @@

namespace Chevere\Xr\Interfaces;

use Chevere\Common\Interfaces\ToArrayInterface;
use Chevere\Writer\Interfaces\WriterInterface;

/**
* Describes the component in charge of defining the XR message.
*/
interface MessageInterface extends ToArrayInterface
interface MessageInterface
{
public function body(): string;

Expand Down
5 changes: 3 additions & 2 deletions tests/ClientTest.php
Expand Up @@ -23,7 +23,6 @@
use Chevere\Xr\Message;
use phpseclib3\Crypt\EC;
use PHPUnit\Framework\TestCase;
use function Chevere\Standard\arrayFromKey;
use function Chevere\Xr\sign;

final class ClientTest extends TestCase
Expand Down Expand Up @@ -86,7 +85,9 @@ public function testCustom(): void
"X-Signature: {$signatureDisplay}",
],
];
$result = arrayFromKey($client->options(), CURLOPT_HTTPHEADER);
$result = [
CURLOPT_HTTPHEADER => $client->options()[CURLOPT_HTTPHEADER],
];
$this->assertSame($options, $result);
$this->assertFalse($client->isPaused($message->id()));
}
Expand Down

0 comments on commit 0057da6

Please sign in to comment.