', $this->_expected); } /** * Check if the actual value matches the expected. * * @template TMixed * * @param TMixed $actual * * @return bool */ public function match(&$actual) { if (! is_array($actual) && ! $actual instanceof ArrayAccess) { return false; } return array_key_exists($this->_expected, (array) $actual); } }