Permalink
Browse files

Allow to mock input stream in the controller - make static.

  • Loading branch information...
piotrooo committed Oct 9, 2018
1 parent e20c2bf commit 3f7bb025f8506f2c5119853d5e1120b889fc419f
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/src/Ouzo/Core/ControllerTest.php
@@ -102,6 +102,7 @@ public function setUp()
{
parent::setUp();
StreamStub::register('json');
SimpleTestController::$stream = 'json://input';
Config::overrideProperty('namespace', 'controller')->with('\\');
Route::clear();
}
@@ -110,6 +111,7 @@ public function tearDown()
{
parent::tearDown();
StreamStub::unregister();
SimpleTestController::$stream = 'php://input';
Config::clearProperty('namespace', 'controller');
}

0 comments on commit 3f7bb02

Please sign in to comment.