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