getTestInstance('', $property); self::assertEquals((string) $property, $instance->getProperty()); } public static function validPropertyDataProvider() { return [ [''], ['property'], [new StringObject('property')], ]; } protected function getTestInstance(string $message, string $property): InvalidPropertyException { return new InvalidPropertyException($message, 0, $property); } }