forked from wallabag/wallabag
Jump to Symfony 3.1
This commit is contained in:
17
tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
Normal file
17
tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Wallabag\CoreBundle\Twig;
|
||||
|
||||
use Wallabag\CoreBundle\Twig\WallabagExtension;
|
||||
|
||||
class WallabagExtensionTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testRemoveWww()
|
||||
{
|
||||
$extension = new WallabagExtension();
|
||||
|
||||
$this->assertEquals('lemonde.fr', $extension->removeWww('www.lemonde.fr'));
|
||||
$this->assertEquals('lemonde.fr', $extension->removeWww('lemonde.fr'));
|
||||
$this->assertEquals('gist.github.com', $extension->removeWww('gist.github.com'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user