Skip to content

Commit 0815e52

Browse files
committed
fix tests
1 parent 74584f4 commit 0815e52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exceptions/TwitterException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class TwitterException extends \Exception
88
{
9-
private const PRETTY_PRINT_FLAGS = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
9+
public const PRETTY_PRINT_FLAGS = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
1010

1111
protected function __construct(string $message)
1212
{

tests/TwitterExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
]))
3535
);
3636

37-
expect($exception)->getMessage()->toBe(json_encode($error, JSON_PRETTY_PRINT));
37+
expect($exception)->getMessage()->toBe(json_encode($error, TwitterException::PRETTY_PRINT_FLAGS));
3838
});
3939

4040
it('can handle 429s', function () {

0 commit comments

Comments
 (0)