From 1c5ca815623f40869c75e410685d699fbc134e0e Mon Sep 17 00:00:00 2001 From: Craig Paul Date: Tue, 25 Oct 2016 08:06:58 -0600 Subject: [PATCH] Adds guzzle dependency to constructors --- tests/ProcessorTest.php | 5 +++-- tests/ResponseTest.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/ProcessorTest.php b/tests/ProcessorTest.php index f4f637d..d2e9cc1 100644 --- a/tests/ProcessorTest.php +++ b/tests/ProcessorTest.php @@ -1,5 +1,6 @@ '2012', ]; $this->transaction = new Transaction($this->gateway, $this->params); - $this->processor = new Processor(); + $this->processor = new Processor(new Client()); } /** @test */ public function it_can_instantiate_via_the_constructor() { - $processor = new Processor(); + $processor = new Processor(new Client()); $this->assertEquals(Processor::class, get_class($processor)); } diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index 7013245..fae6afb 100644 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -1,5 +1,6 @@ '2012', ]; $this->transaction = new Transaction($this->gateway, $this->params); - $this->processor = new Processor(); + $this->processor = new Processor(new Client()); } /** @test */