Skip to content

humans/inspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inspect — An easy way to access protected and private class properties.

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);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages