setStaticProperty() public static method

Set the value of a private/protected static property of a class
public static setStaticProperty ( string $class, string $property, mixed $value )
$class string Class that contains the static property
$property string Name of the property who's value we want to set
$value mixed The value to set to the property
 /**
  * setUp
  */
 protected function setUp()
 {
     // Make sure no monolog instance is set before each test.
     TestHelpers::setStaticProperty('Longman\\TelegramBot\\TelegramLog', 'monolog', null);
 }