1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-27 17:28:39 +00:00
wallabag/tests/Wallabag/CoreBundle/Twig/WallabagExtensionTest.php

18 lines
516 B
PHP
Raw Normal View History

2015-10-06 06:34:11 +02:00
<?php
2016-06-01 21:27:35 +02:00
namespace Tests\Wallabag\CoreBundle\Twig;
2015-10-06 06:34:11 +02:00
use Wallabag\CoreBundle\Twig\WallabagExtension;
class WallabagExtensionTest extends \PHPUnit_Framework_TestCase
{
public function testRemoveWww()
{
$extension = new WallabagExtension();
2015-10-06 20:51:40 +02:00
$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'));
2015-10-06 06:34:11 +02:00
}
}