File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public function getMockedServices()
125125 /**
126126 * @return Prophet
127127 */
128- protected function getProphet ()
128+ public function getProphet ()
129129 {
130130 if (!$ this ->prophet ) {
131131 $ this ->prophet = new Prophet ();
Original file line number Diff line number Diff line change @@ -139,5 +139,11 @@ public function testMockedServiceMustBeInitialized()
139139 $ this ->container ->prophesize ($ id , 'stdClass ' );
140140 $ this ->assertTrue ($ this ->container ->initialized ($ id ));
141141 }
142+
143+ public function testGetProphecyReturnsSameObjectTwice ()
144+ {
145+ $ prophet = $ this ->container ->getProphet ();
146+ $ this ->assertSame ($ prophet , $ this ->container ->getProphet ());
147+ }
142148}
143149
You can’t perform that action at this time.
0 commit comments