Neos\Flow\Tests\Unit\Validation\ValidatorResolverTest::resolveValidatorObjectNameRemovesALeadingBackslashFromThePassedType PHP Method

resolveValidatorObjectNameRemovesALeadingBackslashFromThePassedType() public method

    public function resolveValidatorObjectNameRemovesALeadingBackslashFromThePassedType()
    {
        $this->mockObjectManager->expects($this->any())->method('get')->with(ReflectionService::class)->will($this->returnValue($this->mockReflectionService));
        $this->mockObjectManager->expects($this->any())->method('isRegistered')->with('Foo\\Bar')->will($this->returnValue(true));
        $this->mockReflectionService->expects($this->any())->method('getAllImplementationClassNamesForInterface')->with(ValidatorInterface::class)->will($this->returnValue(['Foo\\Bar']));
        $this->assertSame('Foo\\Bar', $this->validatorResolver->_call('resolveValidatorObjectName', '\\Foo\\Bar'));
    }
ValidatorResolverTest