public addStaticProperty ( string $name, mixed $value = null ) | ||
$name | string | The name. |
$value | mixed | The value. |
public function addStaticProperty($name, $value = null)
{
if ($this->isFinalized) {
throw new FinalizedMockException();
}
$this->customStaticProperties[$name] = $value;
return $this;
}