Respect\Validation\FactoryTest::testShouldBeAbleToAppendANewPrefix PHP Method

testShouldBeAbleToAppendANewPrefix() public method

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