This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 77
88namespace ZendTest \View \Helper ;
99
10- use PHPUnit_Framework_TestCase as TestCase ;
10+ use PHPUnit \ Framework \ TestCase ;
1111use Zend \ServiceManager \ServiceManager ;
1212use Zend \View \Exception ;
1313use Zend \View \Helper \Asset ;
@@ -50,7 +50,8 @@ public function testHelperPluginManagerReturnsAssetHelperByClassName()
5050
5151 public function testInvalidAssetName ()
5252 {
53- $ this ->setExpectedException (Exception \InvalidArgumentException::class, 'Asset is not defined. ' );
53+ $ this ->expectException (Exception \InvalidArgumentException::class);
54+ $ this ->expectExceptionMessage ('Asset is not defined ' );
5455
5556 $ this ->asset ->__invoke ('unknown ' );
5657 }
Original file line number Diff line number Diff line change 77
88namespace ZendTest \View \Helper \Service ;
99
10- use PHPUnit_Framework_TestCase as TestCase ;
10+ use PHPUnit \ Framework \ TestCase ;
1111use Zend \ServiceManager \ServiceManager ;
1212use Zend \View \Exception ;
1313use Zend \View \Helper \Asset ;
@@ -68,7 +68,8 @@ public function testInvalidConfiguration()
6868
6969 $ assetFactory = new AssetFactory ();
7070
71- $ this ->setExpectedException (Exception \RuntimeException::class, 'Invalid resource map configuration. ' );
71+ $ this ->expectException (Exception \RuntimeException::class);
72+ $ this ->expectExceptionMessage ('Invalid resource map configuration ' );
7273 $ assetFactory ($ services , '' );
7374 }
7475
You can’t perform that action at this time.
0 commit comments