<?php

require_once __DIR__ . '/../vendor/autoload.php';

// PHPUnit >= 6.0 compatibility
if (!class_exists('PHPUnit_Framework_TestSuite') && class_exists('PHPUnit\Framework\TestSuite')) {
    /** @noinspection PhpIgnoredClassAliasDeclaration */
    class_alias('PHPUnit\Framework\TestSuite', 'PHPUnit_Framework_TestSuite');
}

if (!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) {
    /** @noinspection PhpIgnoredClassAliasDeclaration */
    class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
}

require_once __DIR__ . '/BaseTestCase.php';
require_once __DIR__ . '/AttrDefTestCase.php';

echo "HTMLPurifier version: ", HTMLPurifier::VERSION, "\n";
echo "libxml version:       ", constant('LIBXML_DOTTED_VERSION'), "\n";
echo "PHP memory limit:     ", ini_get('memory_limit'), "\n";
echo "\n";

<?php

require_once __DIR__ . '/../vendor/autoload.php';

// PHPUnit >= 6.0 compatibility
if (!class_exists('PHPUnit_Framework_TestSuite') && class_exists('PHPUnit\Framework\TestSuite')) {
    /** @noinspection PhpIgnoredClassAliasDeclaration */
    class_alias('PHPUnit\Framework\TestSuite', 'PHPUnit_Framework_TestSuite');
}

if (!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) {
    /** @noinspection PhpIgnoredClassAliasDeclaration */
    class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
}

require_once __DIR__ . '/BaseTestCase.php';
require_once __DIR__ . '/AttrDefTestCase.php';

echo "HTMLPurifier version: ", HTMLPurifier::VERSION, "\n";
echo "libxml version:       ", constant('LIBXML_DOTTED_VERSION'), "\n";
echo "PHP memory limit:     ", ini_get('memory_limit'), "\n";
echo "\n";

if (getenv('TRAVIS_PHP_VERSION')) {
    // Fixes /home/travis/.travis/functions: line 109:  4773 Segmentation fault (core dumped)
    gc_disable();
}

Fix segmentation fault on PHP 5.6 on Travis CI
Fix segmentation fault on PHP 5.6 on Travis CI

Segmentation fault started occuring after adding test case related to issue #51
