20
20
use Zend \View \Resolver \TemplatePathStack ;
21
21
use Zend \View \Variables ;
22
22
use Zend \Filter \FilterChain ;
23
+ use ZendTest \View \TestAsset \SharedInstance ;
24
+ use ZendTest \View \TestAsset \Uninvokable ;
23
25
24
26
/**
25
27
* @group Zend_View
@@ -219,11 +221,11 @@ public function testPropertyOverloadingShouldProxyToVariablesContainer()
219
221
public function testMethodOverloadingShouldReturnHelperInstanceIfNotInvokable ()
220
222
{
221
223
$ helpers = new HelperPluginManager (new ServiceManager (), ['invokables ' => [
222
- 'uninvokable ' => ' ZendTest\View\TestAsset\ Uninvokable' ,
224
+ 'uninvokable ' => Uninvokable::class ,
223
225
]]);
224
226
$ this ->renderer ->setHelperPluginManager ($ helpers );
225
227
$ helper = $ this ->renderer ->uninvokable ();
226
- $ this ->assertInstanceOf (' ZendTest\View\TestAsset\ Uninvokable' , $ helper );
228
+ $ this ->assertInstanceOf (Uninvokable::class , $ helper );
227
229
}
228
230
229
231
/**
@@ -232,7 +234,7 @@ public function testMethodOverloadingShouldReturnHelperInstanceIfNotInvokable()
232
234
public function testMethodOverloadingShouldInvokeHelperIfInvokable ()
233
235
{
234
236
$ helpers = new HelperPluginManager (new ServiceManager (), ['invokables ' => [
235
- 'invokable ' => ' ZendTest\View\TestAsset\Invokable ' ,
237
+ 'invokable ' => Uninvokable::class ,
236
238
]]);
237
239
$ this ->renderer ->setHelperPluginManager ($ helpers );
238
240
$ return = $ this ->renderer ->invokable ('it works! ' );
@@ -443,7 +445,7 @@ public function testSharedInstanceHelper()
443
445
{
444
446
$ helpers = new HelperPluginManager (new ServiceManager (), [
445
447
'invokables ' => [
446
- 'sharedinstance ' => ' ZendTest\View\TestAsset\ SharedInstance' ,
448
+ 'sharedinstance ' => SharedInstance::class ,
447
449
],
448
450
'shared ' => [
449
451
'sharedinstance ' => false ,
@@ -458,7 +460,7 @@ public function testSharedInstanceHelper()
458
460
459
461
$ helpers = new HelperPluginManager (new ServiceManager (), [
460
462
'invokables ' => [
461
- 'sharedinstance ' => ' ZendTest\View\TestAsset\ SharedInstance' ,
463
+ 'sharedinstance ' => SharedInstance::class ,
462
464
],
463
465
'shared ' => [
464
466
'sharedinstance ' => true ,
0 commit comments