grafana -> notification-provider -> mattermost | see https://gitlab.fedy95.com/dev/notification-provider
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
560 B

<?php
declare(strict_types=1);
namespace App\Tests\Unit;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use ReflectionException;
use ReflectionProperty;
class UnitTester extends TestCase
{
/**
* @throws ReflectionException
*/
public function getClassProperty(
mixed $classObject, string $propertyName
): ReflectionProperty
{
$reflector = new ReflectionClass($classObject);
$property = $reflector->getProperty($propertyName);
$property->setAccessible(true);
return $property;
}
}