public function testThrowsUnexpectedValueExceptionIfGettingUnsetState() { $this->expectException(StateNotSet::class); $this->expectExceptionMessage('Noodle\\Stateful\\StateMaintainerTest has no current state'); $object = new self(); $object->getCurrentState(); }