expectException(InvalidArgumentException::class); $this->expectExceptionMessage("Invalid predefined variable name: ''"); new PVar(''); } public function testUserValues() { self::assertEquals(3.1415, (string)UVal::numeric(3.1415)); self::assertEquals('!hello!', (string)UVal::string('hello')); self::assertEquals('!apple:peach:orange!', (string)UVal::stringArray(['apple', 'peach', 'orange'])); self::assertEquals('ref:!blur.wasm!', (string)UVal::assetReference('blur.wasm')); } }