Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
add tests for wordseparatortoseparator building
Browse files Browse the repository at this point in the history
  • Loading branch information
Tauop authored and Ocramius committed Feb 2, 2015
1 parent 7beed4e commit e0d37ad
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/ZendTest/Filter/FilterPluginManagerTest.php
Expand Up @@ -39,4 +39,18 @@ public function testLoadingInvalidFilterRaisesException()
$this->setExpectedException('Zend\Filter\Exception\RuntimeException');
$this->filters->get('test');
}

public function testFilterSuccessfullyConstructed()
{
$search_separator = ';';
$replacement_separator = '|';
$options = array(
'search_separator' => $search_separator,
'replacement_separator' => $replacement_separator,
);
$filter = $this->filters->get('wordseparatortoseparator', $options);
$this->assertInstanceOf('Zend\Filter\Word\SeparatorToSeparator', $filter);
$this->assertEquals(';', $filter->getSearchSeparator());
$this->assertEquals('|', $filter->getReplacementSeparator());
}
}

0 comments on commit e0d37ad

Please sign in to comment.