Skip to content
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

Fix tests in Netbeans #7

Merged
merged 1 commit into from Apr 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions tests/BaconStringUtils/Filter/SlugifiyTest.php
Expand Up @@ -13,9 +13,20 @@

class SlugifiyTest extends TestCase
{
protected $filter;


protected function setUp()
{
$this->filter = new Slugify();
$decoder = $this->getMock('\BaconStringUtils\UniDecoder');
$decoder->expects($this->any())->method('decode')->will($this->returnValue('Foo Bar'));

$this->filter->setUniDecoder($decoder);
}

public function testFilter()
{
$filter = new Slugify();
$this->assertEquals('foo-bar', $filter->filter('Foo Bar'));
$this->assertEquals('foo-bar', $this->filter->filter('Foo Bar'));
}
}