/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/src/TestSuite
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/src/TestSuite/CommandTestCase.php (1780B)
$originClassName The class name for which a test is being performed
*/
abstract class CommandTestCase extends TestCase
{
use ConsoleIntegrationTestTrait;
/**
* Get magic method.
*
* It provides access to the cached properties of the test.
* @param string $name Property name
* @return \MeTools\Command\Command|void
* @throws \ReflectionException
*/
public function __get(string $name)
{
if ($name === 'Command') {
if (empty($this->_cache['Command'])) {
/** @var \MeTools\Command\Command $Command */
$Command = new $this->originClassName();
$Command->initialize();
$this->_cache['Command'] = $Command;
}
return $this->_cache['Command'];
}
return parent::__get($name);
}
/**
* Called before every test method
* @return void
*/
protected function setUp(): void
{
parent::setUp();
$this->useCommandRunner();
}
}