humans/inspect

0.3.0 2022-07-11 09:56 UTC

This package is auto-updated.

Last update: 2024-05-16 12:53:30 UTC


README

Inspect is a fast way to pull protected anf private properties from objects.

Installation

composer require humans/inspect --dev

Usage

function it_should_have_a_value_of_x () {
  $object = new class {
  	private string $value = 'x';  
  };
  
  $this->assertEquals('x', inspect($object)->value);
}