Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Adds guzzle dependency to constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 25, 2016
1 parent 376c4a7 commit 1c5ca81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/ProcessorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use GuzzleHttp\Client;
use CraigPaul\Moneris\Crypt;
use CraigPaul\Moneris\Moneris;
use CraigPaul\Moneris\Response;
Expand Down Expand Up @@ -56,13 +57,13 @@ public function setUp()
'expdate' => '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));
}
Expand Down
3 changes: 2 additions & 1 deletion tests/ResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use GuzzleHttp\Client;
use CraigPaul\Moneris\Crypt;
use CraigPaul\Moneris\Moneris;
use CraigPaul\Moneris\Response;
Expand Down Expand Up @@ -63,7 +64,7 @@ public function setUp()
'expdate' => '2012',
];
$this->transaction = new Transaction($this->gateway, $this->params);
$this->processor = new Processor();
$this->processor = new Processor(new Client());
}

/** @test */
Expand Down

0 comments on commit 1c5ca81

Please sign in to comment.