public function buildBaseValidatorCachesTheResultOfTheBuildBaseValidatorConjunctionCalls()
{
$mockReflectionService = $this->createMock(ReflectionService::class);
$mockReflectionService->expects($this->at(0))->method('getAllImplementationClassNamesForInterface')->with(ValidatorInterface::class)->will($this->returnValue([]));
$mockReflectionService->expects($this->at(1))->method('getAllImplementationClassNamesForInterface')->with(PolyTypeObjectValidatorInterface::class)->will($this->returnValue([]));
$mockObjectManager = $this->createMock(ObjectManagerInterface::class);
$mockObjectManager->expects($this->any())->method('get')->will($this->returnValue($mockReflectionService));
$this->validatorResolver->_set('objectManager', $mockObjectManager);
$this->validatorResolver->_set('reflectionService', $mockReflectionService);
$result1 = $this->validatorResolver->getBaseValidatorConjunction('TYPO3\\Virtual\\Foo');
$this->assertInstanceOf(ConjunctionValidator::class, $result1, '#1');
$result2 = $this->validatorResolver->getBaseValidatorConjunction('TYPO3\\Virtual\\Foo');
$this->assertSame($result1, $result2, '#2');
}