This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2424 "psr/http-message" : " ~1.0"
2525 },
2626 "require-dev" : {
27- "phpunit/PHPUnit " : " ~ 4.6" ,
27+ "phpunit/phpunit " : " ^ 4.6 || ^5.5 " ,
2828 "squizlabs/php_codesniffer" : " ^2.3.1"
2929 },
3030 "provide" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class MessageTraitTest extends TestCase
2424
2525 public function setUp ()
2626 {
27- $ this ->message = new Request (null , null , $ this ->getMock ('Psr\Http\Message\StreamInterface ' ));
27+ $ this ->message = new Request (null , null , $ this ->getMockBuilder ('Psr\Http\Message\StreamInterface ' )-> getMock ( ));
2828 }
2929
3030 public function testProtocolHasAcceptableDefault ()
@@ -69,14 +69,14 @@ public function testWithProtocolVersionRaisesExceptionForInvalidVersion($version
6969
7070 public function testUsesStreamProvidedInConstructorAsBody ()
7171 {
72- $ stream = $ this ->getMock ('Psr\Http\Message\StreamInterface ' );
72+ $ stream = $ this ->getMockBuilder ('Psr\Http\Message\StreamInterface ' )-> getMock ( );
7373 $ message = new Request (null , null , $ stream );
7474 $ this ->assertSame ($ stream , $ message ->getBody ());
7575 }
7676
7777 public function testBodyMutatorReturnsCloneWithChanges ()
7878 {
79- $ stream = $ this ->getMock ('Psr\Http\Message\StreamInterface ' );
79+ $ stream = $ this ->getMockBuilder ('Psr\Http\Message\StreamInterface ' )-> getMock ( );
8080 $ message = $ this ->message ->withBody ($ stream );
8181 $ this ->assertNotSame ($ this ->message , $ message );
8282 $ this ->assertSame ($ stream , $ message ->getBody ());
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ public function setUp()
4040 $ this ->callback = function ($ req , $ res , $ done ) {
4141 // Intentionally empty
4242 };
43- $ this ->request = $ this ->getMock ('Psr\Http\Message\ServerRequestInterface ' );
44- $ this ->response = $ this ->getMock ('Psr\Http\Message\ResponseInterface ' );
43+ $ this ->request = $ this ->getMockBuilder ('Psr\Http\Message\ServerRequestInterface ' )-> getMock ( );
44+ $ this ->response = $ this ->getMockBuilder ('Psr\Http\Message\ResponseInterface ' )-> getMock ( );
4545 }
4646
4747 public function tearDown ()
@@ -93,7 +93,7 @@ public function testEmmiterSetter()
9393 $ this ->request ,
9494 $ this ->response
9595 );
96- $ emmiter = $ this ->getMock ('Zend\Diactoros\Response\EmitterInterface ' );
96+ $ emmiter = $ this ->getMockBuilder ('Zend\Diactoros\Response\EmitterInterface ' )-> getMock ( );
9797 $ emmiter ->expects ($ this ->once ())->method ('emit ' );
9898
9999 $ server ->setEmitter ($ emmiter );
You can’t perform that action at this time.
0 commit comments