File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 22
22
"require-dev" : {
23
23
"phpunit/phpunit" : " ^8.4|^9.0" ,
24
24
"scrutinizer/ocular" : " ~1.1" ,
25
- "satooshi /php-coveralls" : " ^0.7 .0" ,
25
+ "php-coveralls /php-coveralls" : " ^2 .0" ,
26
26
"mockery/mockery" : " ^1.3"
27
27
},
28
28
"autoload" : {
Original file line number Diff line number Diff line change 22
22
<logging >
23
23
<log type =" tap" target =" build/report.tap" />
24
24
<log type =" junit" target =" build/report.junit.xml" />
25
- <log type =" coverage-html" target =" build/coverage" charset = " UTF-8 " yui = " true " highlight = " true " />
25
+ <log type =" coverage-html" target =" build/coverage" />
26
26
<log type =" coverage-text" target =" build/coverage.txt" />
27
27
<log type =" coverage-clover" target =" build/logs/clover.xml" />
28
28
</logging >
Original file line number Diff line number Diff line change 2
2
3
3
namespace Unicodeveloper \Paystack \Test ;
4
4
5
+ use Mockery as m ;
5
6
use PHPUnit \Framework \TestCase ;
6
7
7
8
class HelpersTest extends TestCase {
8
9
10
+ protected $ paystack ;
11
+
12
+ public function setUp (): void
13
+ {
14
+ $ this ->paystack = m::mock ('Unicodeveloper\Paystack\Paystack ' );
15
+ $ this ->mock = m::mock ('GuzzleHttp\Client ' );
16
+ }
17
+
18
+ public function tearDown (): void
19
+ {
20
+ m::close ();
21
+ }
22
+
9
23
/**
10
24
* Tests that helper returns
11
25
*
@@ -14,6 +28,6 @@ class HelpersTest extends TestCase {
14
28
*/
15
29
function it_returns_instance_of_paystack () {
16
30
17
- $ this ->assertInstanceOf ("Unicodeveloper\Paystack\Paystack " , paystack () );
31
+ $ this ->assertInstanceOf ("Unicodeveloper\Paystack\Paystack " , $ this -> paystack );
18
32
}
19
33
}
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ class PaystackTest extends TestCase
22
22
{
23
23
protected $ paystack ;
24
24
25
- public function setUp ()
25
+ public function setUp (): void
26
26
{
27
27
$ this ->paystack = m::mock ('Unicodeveloper\Paystack\Paystack ' );
28
28
$ this ->mock = m::mock ('GuzzleHttp\Client ' );
29
29
}
30
30
31
- public function tearDown ()
31
+ public function tearDown (): void
32
32
{
33
33
m::close ();
34
34
}
You can’t perform that action at this time.
0 commit comments