File manager - Edit - /var/www/html/portal/vendor/phpdocumentor/reflection/tests/unit/phpDocumentor/Reflection/Php/MetadataContainerTestHelper.php
Back
<?php declare(strict_types=1); namespace phpDocumentor\Reflection\Php; use phpDocumentor\Reflection\Exception; use phpDocumentor\Reflection\Metadata\MetaDataContainer as MetaDataContainerInterface; trait MetadataContainerTestHelper { public function testSetMetaDataForNonExistingKey(): void { $stub = new MetadataStub('stub'); $this->getFixture()->addMetadata($stub); self::assertSame(['stub' => $stub], $this->getFixture()->getMetadata()); } public function testSetMetaDataWithExistingKeyThrows(): void { self::expectException(Exception::class); $stub = new MetadataStub('stub'); $this->getFixture()->addMetadata($stub); $this->getFixture()->addMetadata($stub); } abstract public function getFixture(): MetaDataContainerInterface; }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings