Asserts that two given JSON encoded objects or arrays are not equal.

@param string $expectedJson
@param string $message
@return $this
505779
public function assertJsonStringNotEqualsJsonString($expectedJson, $message = '')
    {
        Assert::assertJsonStringNotEqualsJsonString($expectedJson, $this->getData(), $message);

        return $this;
    }
1296220
public function assertNotSameSize($expected, $message = '')
    {
        Assert::assertNotSameSize($expected, $this->getData(), $message);

        return $this;
    }
472532
public function assertStringMatchesFormat($format, $message = '')
    {
        Assert::assertStringMatchesFormat($format, $this->getData(), $message);

        return $this;
    }
1048606
public static function assertHasItems($expected, $actual, $message='') {
        Assert::assertThat(
            $actual,
            new HasItems($expected),
            $message);
    }
1220002
public static function _sameMessage($actual, $expected)
    {
        if (preg_match('~^(?P<char>\~|/|@|#).*?(?P=char)$~', (string) $expected)) {
            $same = preg_match($expected, $actual);
        } else {
            $same = $actual === $expected;
        }
        return $same || !$expected;
    }
1265813
public function assertInternalType($expected, $message = '')
    {
        Assert::assertInternalType($expected, $this->getData(), $message);

        return $this;
    }
330376
public function assertResponseBodyEquals($inExpected, Response $inResponse, $message = '') {
        \PHPUnit_Framework_Assert::assertEquals($inExpected, $inResponse->getBody(), $message);
    }
827509
public function assertGreaterThan($expected, $message = '')
    {
        Assert::assertGreaterThan($expected, $this->getData(), $message);

        return $this;
    }
425183
public function setExpectedAndReceived($expected, $received)
    {
        $this->expected = is_string($expected)
            ? $expected : get_class($expected);

        $this->received = TypeHound::fetch($received);

        $this->message = vsprintf(
            'An instance of a %s was expected but got %s',
            [$this->expected, $this->received]
        );
    }
357946
protected function choice($message, $expectedValues, $default = null
    )
    {
        /** @var QuestionHelper $q */
        $q = $this->getHelperSet()->get('question');

        $question = new ChoiceQuestion(
            $message . ($default ? (sprintf(' [%s]', $default)) : '') . ' : ',
            $expectedValues,
            $default
        );

        $question->setMaxAttempts(5);

        $response = $q->ask($this->getInput(), $this->getOutput(), $question);

        return $response;
    }
239881
public static void assertEquals(Object expected, Object actual, String message) {
        if (!Objects.equals(expected, actual)) {
            fail(message);
        }
    }
19793
public function assertStringNotMatchesFormat($format, $message = '')
    {
        Assert::assertStringNotMatchesFormat($format, $this->getData(), $message);

        return $this;
    }
396357
public function assertNotCount($expectedCount, $message = '')
    {
        Assert::assertNotCount($expectedCount, $this->getData(), $message);

        return $this;
    }
957787
public function assertDialogOpened($message)
    {
        $actualMessage = $this->driver->switchTo()->alert()->getText();

        PHPUnit::assertEquals(
            $message, $actualMessage,
            "Expected dialog message [{$message}] does not equal actual message [{$actualMessage}]."
        );

        return $this;
    }
367645
protected function assertGreaterThanOrEqual($expected, $actual, $message = '')
    {
        \PHPUnit\Framework\Assert::assertGreaterThanOrEqual($expected, $actual, $message);
    }
568504
public function assertContainsOnlyInstancesOf($classname, $message = '')
    {
        Assert::assertContainsOnlyInstancesOf($classname, $this->getData(), $message);

        return $this;
    }
149587
protected function seeJsonEquals($expected)
    {
        if (is_array($expected)) {
            $expected = json_encode($expected);
        }

        $this->assertJsonStringEqualsJsonString($expected, $this->response());

        return $this;
    }