/** * Build the description of the runned `::match()` call. * * @param string $actual The actual string. * @param string $expected The expected string. */ public static function _buildDescription($actual, $expected) { $description = "matches expected regex in echoed string."; $data['actual'] = $actual; $data['expected'] = $expected; static::$_description = compact('description', 'data'); }
/** * Build the description of the runned `::match()` call. * * @param string $actual The actual string. * @param string $expected The expected string. */ public static function _buildDescription($actual, $expected) { $description = "echo the expected string."; $params['actual'] = $actual; $params['expected'] = $expected; static::$_description = compact('description', 'params'); }
/** * Build the description of the runned `::match()` call. * * @param string $actual The actual type. * @param string $expected The expected type. */ public static function _buildDescription($actual, $expected) { $description = "have the expected type."; $data['actual'] = $actual; $data['expected'] = $expected; static::$_description = compact('description', 'data'); }
/** * Build the description of the runned `::match()` call. * * @param mixed $actual The actual value. * @param mixed $expected The expected value. * @param integer $precision The precision to use. */ public static function _buildDescription($actual, $expected, $precision) { $description = "be close to expected relying to a precision of {$precision}."; $params['actual'] = $actual; $params['expected'] = $expected; $params['gap is >='] = pow(10, -$precision) / 2; static::$_description = compact('description', 'params'); }
/** * Build the description of the runned `::match()` call. * * @param mixed $actual The actual value. * @param mixed $length The actual length value value. * @param mixed $expected The expected length value. */ public static function _buildDescription($actual, $length, $expected) { $description = "have the expected length."; $params['actual'] = $actual; $params['actual length'] = $length; $params['expected length'] = $expected; static::$_description = compact('description', 'params'); }
/** * Description works tricky as a static * property, reload as a needed. * * @return void */ private function reloadDescription() { static::$_description = new Description($this->loadConfig()); }
/** * Build the description of the runned `::match()` call. * * @param object $actual The actual exception instance. * @param object $expected The expected exception instance. */ public static function _buildDescription($actual, $expected) { $description = "throw a compatible exception."; $data['actual'] = $actual; $data['expected'] = $expected; static::$_description = compact('description', 'data'); }