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