mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
Merge branch 'master' into scoped
# Conflicts: # src/Expectations/HigherOrderExpectation.php # tests/Features/Expect/HigherOrder/methods.php
This commit is contained in:
@ -95,6 +95,16 @@ final class HigherOrderExpectation
|
||||
return new self($this->original, $this->original->value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new expectation with the decoded JSON value.
|
||||
*
|
||||
* @return self<TOriginalValue, array<string|int, mixed>|bool>
|
||||
*/
|
||||
public function json(): self
|
||||
{
|
||||
return new self($this->original, $this->expectation->json()->value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Dynamically calls methods on the class with the given arguments.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user