/** * @test * * @param string $status * * @dataProvider cloneableStatusDataProvider */ public function cloneReturnsDirtyModel($status) { $this->subject->setLoadStatus($status); $clone = clone $this->subject; self::assertTrue($clone->isDirty()); }
/** * @test * @param string $status * @dataProvider uncloneableStatusDataProvider * @expectedException \BadMethodCallException */ public function cloneWithInvalidStatusThrowsException($status) { $this->subject->setLoadStatus($status); clone $this->subject; }