for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace VGirol\JsonApiAssert\Asserts\Structure;
/**
* Assertions relating to the meta object
*/
trait AssertMetaObject
{
* Asserts that a json fragment is a valid meta object.
*
* It will do the following checks :
* 1) asserts that the meta object is not an array of objects (@see assertIsNotArrayOfObjects).
* 2) asserts that each member of the meta object is valid (@see assertIsValidMemberName).
* @param array $json
* @param boolean $strict If true, unsafe characters are not allowed when checking members name.
* @return void
* @throws \PHPUnit\Framework\AssertionFailedError
public static function assertIsValidMetaObject($json, bool $strict): void
static::askService('validateMetaObject', $json, $strict);
}