<commit_before>require 'spec_helper'

describe 'php::repo', type: :class do
  on_supported_os.each do |os, facts|
    context "on #{os}" do
      let :facts do
        facts
      end

      describe 'when configuring a package repo' do
        case facts[:osfamily]
        when 'Debian'
          case facts[:operatingsystem]
          when 'Debian'
            it { is_expected.to contain_class('php::repo::debian') }
          when 'Ubuntu'
            it { is_expected.to contain_class('php::repo::ubuntu') }
          end
        when 'Suse'
          it { is_expected.to contain_class('php::repo::suse') }
        when 'RedHat'<commit_msg>add missing pre_condition for repo unit tests<commit_after>require 'spec_helper'

describe 'php::repo', type: :class do
  on_supported_os.each do |os, facts|
    context "on #{os}" do
      let :facts do
        facts
      end

      let :pre_condition do
        'include php'
      end

      describe 'when configuring a package repo' do
        case facts[:osfamily]
        when 'Debian'
          case facts[:operatingsystem]
          when 'Debian'
            it { is_expected.to contain_class('php::repo::debian') }
          when 'Ubuntu'
            it { is_expected.to contain_class('php::repo::ubuntu') }
          end
        when 'Suse'
          it { is_expected.to contain_class('php::repo::suse') }
        when 'RedHat'
{'fraction_non_alphanumeric': 0.10758122743682311, 'fraction_numerical': 0.0, 'mean_word_length': 2.193548387096774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5423734', 'n_tokens_mistral': 434, 'n_tokens_neox': 409, 'n_words': 113}