Skip to content

Commit

Permalink
Merge pull request #69 from alexdebril/issue/68
Browse files Browse the repository at this point in the history
Fix #68 : lower-case aliases mapping
  • Loading branch information
alexdebril authored Dec 30, 2016
2 parents 430cdcf + d0ecad0 commit 0ced003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FeedIo/RuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function add(RuleAbstract $rule, array $aliases = array())
public function addAliases($name, array $aliases)
{
foreach ($aliases as $alias) {
$this->aliases[$alias] = $name;
$this->aliases[strtolower($alias)] = strtolower($name);
}

return $this;
Expand Down
2 changes: 1 addition & 1 deletion tests/FeedIo/RuleSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testAdd()

public function testAddAliases()
{
$name = 'mainNode';
$name = 'main-node';
$aliases = array('node1', 'node2');

$this->object->addAliases($name, $aliases);
Expand Down

0 comments on commit 0ced003

Please sign in to comment.