Respect\Validation\FactoryTest::testShouldBeAbleToPrependANewRulePrefix PHP Method

testShouldBeAbleToPrependANewRulePrefix() public method

public testShouldBeAbleToPrependANewRulePrefix ( $namespace, $expectedNamespace )
    public function testShouldBeAbleToPrependANewRulePrefix($namespace, $expectedNamespace)
    {
        $factory = new Factory();
        $factory->prependRulePrefix($namespace);
        $currentRulePrefixes = $factory->getRulePrefixes();
        $this->assertContains($expectedNamespace, array_shift($currentRulePrefixes), 'Prepended namespace rule was not found as expected into the prefix list.' . PHP_EOL . sprintf('Prepended "%s", current list is ' . PHP_EOL . '%s', $namespace, implode(PHP_EOL, $factory->getRulePrefixes())));
    }