/** * {@inheritdoc} */ public function header(string $key = null, $default = null) { return Arr::unwrap($this->wrapped->getHeader($key), $default); }
public function test_it_returns_a_default_value_for_empty_arrays() { $this->assertEquals('bar', Arr::unwrap([], 'bar')); }