for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace DocLister\Tests;
class TestAbstract extends \PHPUnit_Framework_TestCase
{
public function getMethod($class, $method)
$reflection = new \ReflectionClass($class);
$method = $reflection->getMethod($method);
$method->setAccessible(true);
return $method;
}
public function getProperty($class, $property)
/** @var \ReflectionProperty $property */
$property = $reflection->getProperty($property);
$property->setAccessible(true);
return $property->getValue($class);
public function setProperty($class, $property, $value)
$property->setValue($class, $value);