<commit_before><?php

namespace Thawcast\Request;

use PHPUnit_Framework_TestCase;
use Thawcast\Thawcast;

class TestBase extends PHPUnit_Framework_TestCase
{
    protected $server;

    public function setUp() {
        $this->server = new Thawcast(ICECAST_HOST, array(ICECAST_ADMIN_USERNAME, ICECAST_ADMIN_PASSWORD));
    }
}<commit_msg>Only run Icecast tests when Icecast config is provided<commit_after><?php

namespace Thawcast\Request;

use PHPUnit_Framework_TestCase;
use Thawcast\Thawcast;

class TestBase extends PHPUnit_Framework_TestCase
{
    protected $server;

    public function setUp() {
        $icecastConfigAvailable = defined('ICECAST_HOST') &&
            defined('ICECAST_ADMIN_USERNAME') &&
            defined('ICECAST_ADMIN_PASSWORD');

        if (!$icecastConfigAvailable) {
            $this->markTestSkipped('Icecast configuration was not available.');
        } else {
            $this->server = new Thawcast(ICECAST_HOST,
                array(ICECAST_ADMIN_USERNAME, ICECAST_ADMIN_PASSWORD));
        }
    }
}
{'fraction_non_alphanumeric': 0.09003831417624521, 'fraction_numerical': 0.0, 'mean_word_length': 3.68609865470852, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '4314947', 'n_tokens_mistral': 314, 'n_tokens_neox': 310, 'n_words': 62}