| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | class JsonSerializableTraitTest extends AbstractTest |
||
| 12 | { |
||
| 13 | public const WORK_DIR = self::VAR_PATH . '/' . self::TEST_TYPE_MEDIUM . '/JsonSerializableTraitTest'; |
||
| 14 | private const TEST_ENTITY_FQN = self::TEST_ENTITIES_ROOT_NAMESPACE . |
||
| 15 | TestCodeGenerator::TEST_ENTITY_ALL_ARCHETYPE_FIELDS; |
||
| 16 | protected static $buildOnce = true; |
||
| 17 | |||
| 18 | public function setup() |
||
| 19 | { |
||
| 20 | parent::setUp(); |
||
| 21 | if (false === self::$built) { |
||
| 22 | $this->getTestCodeGenerator() |
||
| 23 | ->copyTo(self::WORK_DIR); |
||
| 24 | self::$built = true; |
||
| 25 | } |
||
| 26 | $this->setupCopiedWorkDir(); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @test |
||
| 31 | * |
||
| 32 | * @throws \EdmondsCommerce\DoctrineStaticMeta\Exception\DoctrineStaticMetaException |
||
| 33 | * @throws \ErrorException |
||
| 34 | * @throws \ReflectionException |
||
| 35 | */ |
||
| 36 | public function entitiesCanBeJsonSerialised(): void |
||
| 47 | |||
| 48 | } |
||
| 50 |