2020use Eloquent \Phony \Mock \Exception \MockException ;
2121use Eloquent \Phony \Mock \Exception \NonMockClassException ;
2222use Eloquent \Phony \Mock \Mock ;
23+ use Eloquent \Phony \Stub \EmptyValueFactory ;
2324use Eloquent \Phony \Stub \StubFactory ;
2425use Eloquent \Phony \Stub \StubVerifierFactory ;
2526use ReflectionClass ;
@@ -41,6 +42,7 @@ public static function instance()
4142 self ::$ instance = new self (
4243 StubFactory::instance (),
4344 StubVerifierFactory::instance (),
45+ EmptyValueFactory::instance (),
4446 AssertionRenderer::instance (),
4547 ExceptionAssertionRecorder::instance (),
4648 Invoker::instance ()
@@ -55,19 +57,22 @@ public static function instance()
5557 *
5658 * @param StubFactory $stubFactory The stub factory to use.
5759 * @param StubVerifierFactory $stubVerifierFactory The stub verifier factory to use.
60+ * @param EmptyValueFactory $emptyValueFactory The empty value factory to use.
5861 * @param AssertionRenderer $assertionRenderer The assertion renderer to use.
5962 * @param AssertionRecorder $assertionRecorder The assertion recorder to use.
6063 * @param Invoker $invoker The invoker to use.
6164 */
6265 public function __construct (
6366 StubFactory $ stubFactory ,
6467 StubVerifierFactory $ stubVerifierFactory ,
68+ EmptyValueFactory $ emptyValueFactory ,
6569 AssertionRenderer $ assertionRenderer ,
6670 AssertionRecorder $ assertionRecorder ,
6771 Invoker $ invoker
6872 ) {
6973 $ this ->stubFactory = $ stubFactory ;
7074 $ this ->stubVerifierFactory = $ stubVerifierFactory ;
75+ $ this ->emptyValueFactory = $ emptyValueFactory ;
7176 $ this ->assertionRenderer = $ assertionRenderer ;
7277 $ this ->assertionRecorder = $ assertionRecorder ;
7378 $ this ->invoker = $ invoker ;
@@ -114,6 +119,7 @@ public function instanceHandle($mock, $label = null)
114119 ),
115120 $ this ->stubFactory ,
116121 $ this ->stubVerifierFactory ,
122+ $ this ->emptyValueFactory ,
117123 $ this ->assertionRenderer ,
118124 $ this ->assertionRecorder ,
119125 $ this ->invoker
@@ -173,6 +179,7 @@ public function staticHandle($class)
173179 ),
174180 $ this ->stubFactory ,
175181 $ this ->stubVerifierFactory ,
182+ $ this ->emptyValueFactory ,
176183 $ this ->assertionRenderer ,
177184 $ this ->assertionRecorder ,
178185 $ this ->invoker
@@ -186,6 +193,7 @@ public function staticHandle($class)
186193 private static $ instance ;
187194 private $ stubFactory ;
188195 private $ stubVerifierFactory ;
196+ private $ emptyValueFactory ;
189197 private $ assertionRenderer ;
190198 private $ assertionRecorder ;
191199 private $ invoker ;
0 commit comments