Skip to content

ValueRenderer

Rasuvaeff\PropertyTesting\ValueRenderer

ClassPackage: property-testing-coreSourceVersion: v0.1.0-12-g86ead85

Renders an arbitrary value into a compact, human-readable string for counterexample reporting. Unlike a bare [N element(s)]/class-name summary it descends into arrays and simple objects so the shrunk value is actually visible, while staying bounded: depth, element count and string length are all capped, special floats and binary strings are labelled, and object recursion is guarded against cycles.

Methods

render()

php
static render(mixed $value): string

normalize()

php
static normalize(mixed $value): mixed

exportPhp()

php
static exportPhp(mixed $value): string