5use PHPUnit\Framework\TestCase;
12require_once(
'./libs/composer/vendor/autoload.php');
26 protected function setUp() : void
36 $this->meta_content->addMetaDatum($key, $value);
37 $collection = $this->meta_content->getMetaData();
39 $first_item = iterator_to_array($collection->getItems())[0];
40 $this->assertInstanceOf(MetaDatum::class, $first_item);
41 $this->assertEquals($key, $first_item->getKey());
42 $this->assertEquals($value, $first_item->getValue());
An exception for terminatinating execution or to throw for unit testing.
Class MetaDataCollection.