New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Write more test suites #89

Merged
merged 34 commits into from Sep 7, 2016
Commits
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+2 −15
Diff settings

Always

Just for now

Ruler: Remove the `interprete` method.

This method was scheduled to be deleted in 2.x.
  • Loading branch information...
Hywan committed Sep 5, 2016
commit df43f8cdca1d093d6dd87cae88b61bbaf8f40654
Copy path View file
@@ -92,7 +92,7 @@ class Ruler
public function assert($rule, Context $context = null)
{
if (is_string($rule)) {
$rule = static::interprete($rule);
$rule = static::interpret($rule);
}
if (null === $context) {
@@ -103,7 +103,7 @@ public function assert($rule, Context $context = null)
}
/**
* Alias to the self::interprete method.
* Short interpreter.
*
* @param string $rule Rule.
* @return \Hoa\Ruler\Model
@@ -116,19 +116,6 @@ public static function interpret($rule)
);
}
/**
* Short interpreter.
*
* @param string $rule Rule.
* @return \Hoa\Ruler\Model
* @throws \Hoa\Ruler\Exception
* @deprecated Will be removed in 2.x.
*/
public static function interprete($rule)
{
return static::interpret($rule);
}
/**
* Get interpreter.
*
ProTip! Use n and p to navigate between commits in a pull request.