Skip to content

ValueRenderer ​

Rasuvaeff\PropertyTesting\ValueRenderer

Class — Package: property-testing-core — Source — Version: v1.0.0-1-g88fdee2

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