Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
TestCase
✓ use Jstewmc\TestCase\TestCase;
Extend TestCase to access private properties in unit tests.
use Jstewmc\TestCase\TestCase;
class MyTest extends TestCase
{
public function testPrivateProperty()
{
$obj = new SomeClass();
$this->setPrivateProperty($obj, 'privateProp', 'value');
$this->assertEquals('value', $this->getPrivateProperty($obj, 'privateProp'));
}
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.