/** * @test */ public function getOutputContainsErrorReason() { $expected = 'Reason ' . uniqid(); /** @var \R3H6\Error404page\Domain\Model\Error $errorFixture */ $errorFixture = new Error(); $errorFixture->setReason($expected); $this->assertContains($expected, $this->subject->getOutput($errorFixture)); }
/** * @test */ public function setReasonForStringSetsReason() { $this->subject->setReason('Conceived at T3CON10'); $this->assertAttributeEquals('Conceived at T3CON10', 'reason', $this->subject); }