<commit_before><?php
namespace Granam\Tests\Integer\Tools;

use Granam\Number\NumberObject;
use Granam\Tests\Exceptions\Tools\AbstractExceptionsHierarchyTest;

class ExceptionHierarchyTest extends AbstractExceptionsHierarchyTest
{
    protected function getTestedNamespace()
    {
        return str_replace('\Tests', '', __NAMESPACE__);
    }

    protected function getRootNamespace()
    {
        $rootReflection = new \ReflectionClass('\Granam\Integer\IntegerInterface');

        return $rootReflection->getNamespaceName();
    }

    protected function getExternalRootNamespaces()
    {
        $externalRootReflection = new \ReflectionClass(NumberObject::getClass());

        return $externalRootReflection->getNamespaceName();
    }

}<commit_msg>Fixed after a library incompatible change<commit_after><?php
namespace Granam\Tests\Integer\Tools;

use Granam\Integer\IntegerInterface;
use Granam\Number\NumberObject;
use Granam\Tests\Exceptions\Tools\AbstractExceptionsHierarchyTest;

class ExceptionHierarchyTest extends AbstractExceptionsHierarchyTest
{
    protected function getTestedNamespace()
    {
        return str_replace('\Tests', '', __NAMESPACE__);
    }

    protected function getRootNamespace()
    {
        $rootReflection = new \ReflectionClass(IntegerInterface::class);

        return $rootReflection->getNamespaceName();
    }

    protected function getExternalRootNamespaces()
    {
        $externalRootReflection = new \ReflectionClass(NumberObject::class);

        return $externalRootReflection->getNamespaceName();
    }

}
{'fraction_non_alphanumeric': 0.09341010876519514, 'fraction_numerical': 0.0, 'mean_word_length': 4.337883959044369, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4887585', 'n_tokens_mistral': 403, 'n_tokens_neox': 402, 'n_words': 73}