src/Context/ApiContext.php
public function assertResponseBodyIsAnEmptyJsonArray() {
        $this->requireResponse();

        try {
            Assertion::same(
                [],
                $body = $this->getResponseBodyArray(),
                sprintf('Expected response body to be an empty JSON array, got "%s".', json_encode($body, JSON_PRETTY_PRINT))
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseBodyIsAnEmptyJsonArray() {
        $this->requireResponse();

        try {
            Assertion::same(
                [],
                $body = $this->getResponseBodyArray(),
                sprintf('Expected response body to be an empty JSON array, got "%s".', json_encode($body, JSON_PRETTY_PRINT))
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseBodyIsAnEmptyJsonArray ( ) { $ this -> requireResponse ( ) ; try { Assertion :: same ( [ ] , $ body = $ this -> getResponseBodyArray ( ) , sprintf ( 'Expected response body to be an empty JSON array, got "%s".' , json_encode ( $ body , JSON_PRETTY_PRINT ) ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Assert that the response body contains an empty JSON array

@throws AssertionFailedException
@return void

@Then the response body is an empty JSON array
Assert that the response body contains an empty JSON array