2 declare(strict_types = 1);
19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
31 $matcher = $this->getAccessibleMockForAbstractClass(AbstractCoreMatcher::class, [],
'',
false);
40 $matcher->_set(
'matcherDefinitions', $configuration);
41 $matcher->_call(
'validateMatcherDefinitions', [
'requiredArg1']);
49 $matcher = $this->getAccessibleMockForAbstractClass(AbstractCoreMatcher::class, [],
'',
false);
52 'someNotRequiredConfig' =>
'',
58 $matcher->_set(
'matcherDefinitions', $configuration);
59 $this->expectException(\InvalidArgumentException::class);
60 $this->expectExceptionCode(1500492001);
61 $matcher->_call(
'validateMatcherDefinitions', [
'requiredArg1']);
69 $matcher = $this->getAccessibleMockForAbstractClass(AbstractCoreMatcher::class, [],
'',
false);
75 $matcher->_set(
'matcherDefinitions', $configuration);
76 $this->expectException(\InvalidArgumentException::class);
77 $this->expectExceptionCode(1500496068);
78 $matcher->_call(
'validateMatcherDefinitions', []);
86 $matcher = $this->getAccessibleMockForAbstractClass(AbstractCoreMatcher::class, [],
'',
false);
95 $matcher->_set(
'matcherDefinitions', $configuration);
96 $this->expectException(\InvalidArgumentException::class);
97 $this->expectExceptionCode(1500735983);
98 $matcher->_call(
'validateMatcherDefinitions', []);
106 $matcher = $this->getAccessibleMockForAbstractClass(AbstractCoreMatcher::class, [],
'',
false);
108 'no\method\given' => [
112 $matcher->_set(
'matcherDefinitions', $configuration);
113 $this->expectException(\RuntimeException::class);
114 $this->expectExceptionCode(1500557309);
115 $matcher->_call(
'initializeFlatMatcherDefinitions');