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