From 784bb4c38d4665294108d7de39c85208a6d76001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 6 Oct 2015 06:34:11 +0200 Subject: add test for removeWww Twig Extension --- .../CoreBundle/Tests/Twig/WallabagExtensionTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Tests/Twig/WallabagExtensionTest.php (limited to 'src/Wallabag/CoreBundle/Tests') 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 @@ +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')); + } +} -- cgit v1.2.3