diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 18:19:23 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 18:19:23 +0200 |
commit | 66c73a96ac2dda076bcfe0dc0a1ca2a7e169149d (patch) | |
tree | dc0318fa459e4f313217ee38e4bc63524513d721 /tests/unit/articleenhancer/GlobalArticleEnhancerTest.php | |
parent | f5e64d35c05b14016eb4fffff7199386a97a9b43 (diff) |
first try to set indention limit at 80 characters in php
Diffstat (limited to 'tests/unit/articleenhancer/GlobalArticleEnhancerTest.php')
-rw-r--r-- | tests/unit/articleenhancer/GlobalArticleEnhancerTest.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php b/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php index 3add03eb5..79647a882 100644 --- a/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php +++ b/tests/unit/articleenhancer/GlobalArticleEnhancerTest.php @@ -26,8 +26,12 @@ class GlobalArticleEnhancerTest extends \PHPUnit_Framework_TestCase { public function testNoReplaceYoutubeAutoplay() { - $body = '<iframe width="728" height="410" src="//www.youtube.com/embed/autoplay=1/AWE6UpXQoGU" frameborder="0" allowfullscreen=""></iframe>'; - $expected = '<div><iframe width="728" height="410" src="//www.youtube.com/embed/autoplay=1/AWE6UpXQoGU" frameborder="0" allowfullscreen=""></iframe></div>'; + $body = '<iframe width="728" height="410" ' . + 'src="//www.youtube.com/embed/autoplay=1/AWE6UpXQoGU" ' . + 'frameborder="0" allowfullscreen=""></iframe>'; + $expected = '<div><iframe width="728" height="410" ' . + 'src="//www.youtube.com/embed/autoplay=1/AWE6UpXQoGU" ' . + 'frameborder="0" allowfullscreen=""></iframe></div>'; $item = new Item(); $item->setBody($body); @@ -37,8 +41,14 @@ class GlobalArticleEnhancerTest extends \PHPUnit_Framework_TestCase { public function testReplaceYoutubeAutoplay() { - $body = 'test <iframe width="728" height="410" src="//www.youtube.com/embed/AWE6UpXQoGU?tst=1&autoplay=1&abc=1" frameborder="0" allowfullscreen=""></iframe>'; - $expected = '<div>test <iframe width="728" height="410" src="//www.youtube.com/embed/AWE6UpXQoGU?tst=1&autoplay=0&abc=1" frameborder="0" allowfullscreen=""></iframe></div>'; + $body = 'test <iframe width="728" height="410" ' . + 'src="//www.youtube.com/embed' . + '/AWE6UpXQoGU?tst=1&autoplay=1&abc=1" frameborder="0" ' . + 'allowfullscreen=""></iframe>'; + $expected = '<div>test <iframe width="728" height="410" ' . + 'src="//www.youtube.com/embed' . + '/AWE6UpXQoGU?tst=1&autoplay=0&abc=1" frameborder="0" ' . + 'allowfullscreen=""></iframe></div>'; $item = new Item(); $item->setBody($body); |