Revert "Fixes json in Higher Order Expectations"

This commit is contained in:
Nuno Maduro
2022-01-21 16:48:26 +00:00
committed by GitHub
parent a533772fe2
commit 4720e0655b
3 changed files with 1 additions and 18 deletions

View File

@ -74,19 +74,8 @@ it('works with higher order tests')
->name()->toEqual('Has Methods')
->books()->each->toBeArray;
it('can call the json method in higher order expectations', function () {
expect(new HasMethods())
->getJsonContent()->json()->id->toBe(1)->toBeGreaterThan(0)
->getJsonContent()->json()->email->toBe('foo@bar.com');
});
class HasMethods
{
public function getJsonContent(): string
{
return '{"id":1,"username":"dan","email":"foo@bar.com"}';
}
public function name()
{
return 'Has Methods';