Skip to content

Commit b9d72c0

Browse files
committed
Renamed NotBlank into NotEmpty
1 parent 221d68a commit b9d72c0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/Coduo/PHPMatcher/Matcher/Pattern/Expander/NotBlank.php renamed to src/Coduo/PHPMatcher/Matcher/Pattern/Expander/NotEmpty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Coduo\PHPMatcher\Matcher\Pattern\PatternExpander;
66
use Coduo\ToString\String;
77

8-
class NotBlank implements PatternExpander
8+
class NotEmpty implements PatternExpander
99
{
1010
private $error;
1111

src/Coduo/PHPMatcher/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Parser
2525
private $expanderDefinitions = array(
2626
"startsWith" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\StartsWith",
2727
"endsWith" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\EndsWith",
28-
"notBlank" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\NotBlank",
28+
"notEmpty" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\NotEmpty",
2929
"lowerThan" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\LowerThan",
3030
"greaterThan" => "Coduo\\PHPMatcher\\Matcher\\Pattern\\Expander\\GreaterThan"
3131
);

tests/Coduo/PHPMatcher/Matcher/Pattern/Expander/NotBlankTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
namespace Coduo\PHPMatcher\Tests\Matcher\Pattern\Expander;
44

55
use Coduo\PHPMatcher\Matcher;
6-
use Coduo\PHPMatcher\Matcher\Pattern\Expander\NotBlank;
6+
use Coduo\PHPMatcher\Matcher\Pattern\Expander\NotEmpty;
77

8-
class NotBlankTest extends \PHPUnit_Framework_TestCase
8+
class NotEmptyTest extends \PHPUnit_Framework_TestCase
99
{
1010
/**
1111
* @dataProvider examplesProvider
1212
*/
1313
public function test_examples_not_ignoring_case($value, $expectedResult)
1414
{
15-
$expander = new NotBlank();
15+
$expander = new NotEmpty();
1616
$this->assertEquals($expectedResult, $expander->match($value));
1717
}
1818

tests/Coduo/PHPMatcher/Matcher/StringMatcherTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static function positiveMatchData()
7070
{
7171
return array(
7272
array("lorem ipsum", "@string@"),
73+
array("lorem ipsum", "@[email protected]()"),
7374
array("lorem ipsum", "@[email protected]('lorem')"),
7475
array("lorem ipsum", "@[email protected]('ipsum')"),
7576
);

0 commit comments

Comments
 (0)