@@ -94,16 +94,20 @@ public function testAppendPrependAndSetThrowExceptionsWhenNonMetaValueProvided()
94
94
}
95
95
}
96
96
97
+ // @codingStandardsIgnoreStart
97
98
protected function _inflectAction ($ type )
98
99
{
100
+ // @codingStandardsIgnoreEnd
99
101
$ type = str_replace ('- ' , ' ' , $ type );
100
102
$ type = ucwords ($ type );
101
103
$ type = str_replace (' ' , '' , $ type );
102
104
return $ type ;
103
105
}
104
106
107
+ // @codingStandardsIgnoreStart
105
108
protected function _testOverloadAppend ($ type )
106
109
{
110
+ // @codingStandardsIgnoreEnd
107
111
$ action = 'append ' . $ this ->_inflectAction ($ type );
108
112
$ string = 'foo ' ;
109
113
for ($ i = 0 ; $ i < 3 ; ++$ i ) {
@@ -122,8 +126,10 @@ protected function _testOverloadAppend($type)
122
126
}
123
127
}
124
128
129
+ // @codingStandardsIgnoreStart
125
130
protected function _testOverloadPrepend ($ type )
126
131
{
132
+ // @codingStandardsIgnoreEnd
127
133
$ action = 'prepend ' . $ this ->_inflectAction ($ type );
128
134
$ string = 'foo ' ;
129
135
for ($ i = 0 ; $ i < 3 ; ++$ i ) {
@@ -142,8 +148,10 @@ protected function _testOverloadPrepend($type)
142
148
}
143
149
}
144
150
151
+ // @codingStandardsIgnoreStart
145
152
protected function _testOverloadSet ($ type )
146
153
{
154
+ // @codingStandardsIgnoreEnd
147
155
$ setAction = 'set ' . $ this ->_inflectAction ($ type );
148
156
$ appendAction = 'append ' . $ this ->_inflectAction ($ type );
149
157
$ string = 'foo ' ;
@@ -312,7 +320,8 @@ public function testSetNameDoesntClobber()
312
320
$ view ->plugin ('headMeta ' )->setName ('keywords ' , 'bat ' );
313
321
314
322
$ this ->assertEquals (
315
- '<meta http-equiv="pragma" content="bar" /> ' . PHP_EOL . '<meta http-equiv="Cache-control" content="baz" /> ' . PHP_EOL . '<meta name="keywords" content="bat" /> ' ,
323
+ '<meta http-equiv="pragma" content="bar" /> ' . PHP_EOL . '<meta http-equiv="Cache-control" content="baz" /> '
324
+ . PHP_EOL . '<meta name="keywords" content="bat" /> ' ,
316
325
$ view ->plugin ('headMeta ' )->toString ()
317
326
);
318
327
}
@@ -330,7 +339,9 @@ public function testSetNameDoesntClobberPart2()
330
339
$ view ->plugin ('headMeta ' )->setName ('keywords ' , 'bar ' );
331
340
332
341
$ this ->assertEquals (
333
- '<meta name="description" content="foo" /> ' . PHP_EOL . '<meta http-equiv="pragma" content="baz" /> ' . PHP_EOL . '<meta http-equiv="Cache-control" content="baz" /> ' . PHP_EOL . '<meta name="keywords" content="bar" /> ' ,
342
+ '<meta name="description" content="foo" /> ' . PHP_EOL . '<meta http-equiv="pragma" content="baz" /> '
343
+ . PHP_EOL . '<meta http-equiv="Cache-control" content="baz" /> ' . PHP_EOL
344
+ . '<meta name="keywords" content="bar" /> ' ,
334
345
$ view ->plugin ('headMeta ' )->toString ()
335
346
);
336
347
}
@@ -343,7 +354,13 @@ public function testPlacesMetaTagsInProperOrder()
343
354
{
344
355
$ view = new View ();
345
356
$ view ->plugin ('headMeta ' )->setName ('keywords ' , 'foo ' );
346
- $ view ->plugin ('headMeta ' )->__invoke ('some content ' , 'bar ' , 'name ' , [], \Zend \View \Helper \Placeholder \Container \AbstractContainer::PREPEND );
357
+ $ view ->plugin ('headMeta ' )->__invoke (
358
+ 'some content ' ,
359
+ 'bar ' ,
360
+ 'name ' ,
361
+ [],
362
+ \Zend \View \Helper \Placeholder \Container \AbstractContainer::PREPEND
363
+ );
347
364
348
365
$ this ->assertEquals (
349
366
'<meta name="bar" content="some content" /> ' . PHP_EOL . '<meta name="keywords" content="foo" /> ' ,
0 commit comments