‪TYPO3CMS  9.5
TreeDataProviderWithConfigurationFixture.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
26  public function ‪__construct($configuration)
27  {
28  if (!is_array($configuration)) {
29  throw new \Exception('Failed asserting that the constructor arguments are an array', 1438875247);
30  }
31  $tcaConfiguration = [
32  'treeConfig' => [
33  'dataProvider' => self::class,
34  ],
35  'internal_type' => 'foo',
36  ];
37  if ($configuration !== $tcaConfiguration) {
38  throw new \Exception('Failed asserting that the constructor arguments are correctly passed', 1438875248);
39  }
40  throw new \RuntimeException('This must be thrown', 1438875249);
41  }
42 }
‪TYPO3\CMS\Core\Tests\Unit\Tree\TableConfiguration\Fixtures\TreeDataProviderWithConfigurationFixture\__construct
‪__construct($configuration)
Definition: TreeDataProviderWithConfigurationFixture.php:26
‪TYPO3\CMS\Core\Tests\Unit\Tree\TableConfiguration\Fixtures\TreeDataProviderWithConfigurationFixture
Definition: TreeDataProviderWithConfigurationFixture.php:21
‪TYPO3\CMS\Core\Tests\Unit\Tree\TableConfiguration\Fixtures
Definition: TreeDataProviderFixture.php:2