Sanpi\Behatch\Context\SystemContext::outputShouldNotBe PHP Method

outputShouldNotBe() public method

public outputShouldNotBe ( Behat\Gherkin\Node\PyStringNode $string )
$string Behat\Gherkin\Node\PyStringNode
    public function outputShouldNotBe(PyStringNode $string)
    {
        $expected = $string->getStrings();
        $check = false;
        foreach ($this->output as $index => $line) {
            if ($line !== $expected[$index]) {
                $check = true;
                break;
            }
        }
        if ($check === false) {
            throw new \Exception("Output should not be");
        }
    }