This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Belevo\EnelixUtils\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
final class LibraryMetadataTest extends TestCase
|
||||||
|
{
|
||||||
|
public function testLibraryJsonIstGueltigUndFuerSymcon80(): void
|
||||||
|
{
|
||||||
|
$inhalt = file_get_contents(__DIR__ . '/../library.json');
|
||||||
|
self::assertNotFalse($inhalt);
|
||||||
|
|
||||||
|
$daten = json_decode($inhalt, true, 512, JSON_THROW_ON_ERROR);
|
||||||
|
self::assertSame('Enelix Utils', $daten['name']);
|
||||||
|
self::assertSame('8.0', $daten['compatibility']['version']);
|
||||||
|
self::assertMatchesRegularExpression('/^\{[0-9A-F-]{36}\}$/', $daten['id']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user