public function __construct($name, $value) { $this->name = $name; $this->value = $value; parent::__construct(sprintf('Invalid mock definition %s: (%s).', var_export($name, true), gettype($value))); }