aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Tests
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-10-06 09:16:52 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-10-06 09:16:52 +0200
commitfdef5f460524215d806e244e5546865f4b8e01df (patch)
tree08c697d0a53e5ded2d26a16b512b814831edcc84 /src/Wallabag/CoreBundle/Tests
parent794dc4ee8adeabb6cf4fa19604b709a53733400e (diff)
parent784bb4c38d4665294108d7de39c85208a6d76001 (diff)
downloadwallabag-fdef5f460524215d806e244e5546865f4b8e01df.tar.gz
wallabag-fdef5f460524215d806e244e5546865f4b8e01df.tar.zst
wallabag-fdef5f460524215d806e244e5546865f4b8e01df.zip
Merge pull request #1461 from wallabag/v2-test-for-www
fix #1433: add test for removeWww Twig Extension
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests')
-rw-r--r--src/Wallabag/CoreBundle/Tests/Twig/WallabagExtensionTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Twig/WallabagExtensionTest.php b/src/Wallabag/CoreBundle/Tests/Twig/WallabagExtensionTest.php
new file mode 100644
index 00000000..4945e9a9
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Tests/Twig/WallabagExtensionTest.php
@@ -0,0 +1,17 @@
1<?php
2
3namespace Wallabag\CoreBundle\Tests\Twig;
4
5use Wallabag\CoreBundle\Twig\WallabagExtension;
6
7class WallabagExtensionTest extends \PHPUnit_Framework_TestCase
8{
9 public function testRemoveWww()
10 {
11 $extension = new WallabagExtension();
12
13 $this->assertEquals("lemonde.fr", $extension->removeWww('www.lemonde.fr'));
14 $this->assertEquals("lemonde.fr", $extension->removeWww('lemonde.fr'));
15 $this->assertEquals("gist.github.com", $extension->removeWww('gist.github.com'));
16 }
17}