2 declare(strict_types = 1);
20 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
36 [
'ace',
'acf',
'ade',
'adf',
'bce',
'bcf',
'bde',
'bdf'],
38 'string & empty value items' => [
44 [
'abc',
'ab',
'ac',
'a',
'bc',
'b',
'c',
'']
46 'object::__toString() items' => [
52 [
'ace',
'acf',
'ade',
'adf',
'bce',
'bcf',
'bde',
'bdf'],
54 'string & object::__toString() items' => [
60 [
'ace',
'acf',
'ade',
'adf',
'bce',
'bcf',
'bde',
'bdf'],
62 'string items with invalid object' => [
66 [
'e',
'f', new \stdClass()],
70 'string items with invalid integer' => [
78 'string items with invalid boolean' => [
86 'string items with invalid array' => [
94 'string items with invalid invocation' => [
112 if (is_int($expectation)) {
113 $this->expectException(\LogicException::class);
114 $this->expectExceptionCode($expectation);
134 [
'a',
'c',
'e'], [
'a',
'c',
'f'], [
'a',
'd',
'e'], [
'a',
'd',
'f'],
135 [
'b',
'c',
'e'], [
'b',
'c',
'f'], [
'b',
'd',
'e'], [
'b',
'd',
'f'],
138 'object::__toString() items' => [
140 [$aStringValue, $bStringValue],
141 [$cStringValue, $dStringValue],
144 [$aStringValue, $cStringValue], [$aStringValue, $dStringValue],
145 [$bStringValue, $cStringValue], [$bStringValue, $dStringValue],
150 [$aStringValue,
'a', 1],
151 [$bStringValue,
'b', 2],
154 [$aStringValue, $bStringValue], [$aStringValue,
'b'], [$aStringValue, 2],
155 [
'a', $bStringValue], [
'a',
'b'], [
'a', 2],
156 [1, $bStringValue], [1,
'b'], [1, 2],
159 'string items in ArrayObject' => [
161 new \ArrayObject([
'a',
'b']),
162 new \ArrayObject([
'c',
'd']),
163 new \ArrayObject([
'e',
'f']),
166 [
'a',
'c',
'e'], [
'a',
'c',
'f'], [
'a',
'd',
'e'], [
'a',
'd',
'f'],
167 [
'b',
'c',
'e'], [
'b',
'c',
'f'], [
'b',
'd',
'e'], [
'b',
'd',
'f'],
170 'string items with invalid invocation' => [
176 'object::__toString() items with invalid invocation' => [
196 if (is_int($expectation)) {
197 $this->expectException(\LogicException::class);
198 $this->expectExceptionCode($expectation);