Skip to content

Commit

Permalink
Fix #68 : lower-case aliases mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdebril committed Dec 30, 2016
1 parent 430cdcf commit d0ecad0
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 d0ecad0

Please sign in to comment.