Skip to content

Commit f49973d

Browse files
committed
update test to avoid warning
1 parent 7db4afa commit f49973d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/_support/Helper/Unit.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ class Unit extends \Codeception\Module
1010
/**
1111
* Assert instanceof against an object
1212
*
13-
* @param $class
14-
* @param $object
13+
* @param $class
14+
* @param $object
15+
* @param string $description
1516
*/
16-
public function assertInstanceOf($class, $object)
17+
public function assertInstanceOf($class, $object, $description = '')
1718
{
1819
if (! is_object($object)) {
1920
throw new \PHPUnit_Framework_ExpectationFailedException($object . ' is a ' . gettype($object) . ' not an instance of ' . $class);

tests/unit/AutopilotCest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AutopilotCest
3131

3232
public function __construct()
3333
{
34-
$this->pilot = new AutopilotManager();
34+
$this->pilot = new AutopilotManager('key');
3535

3636
$this->exceptions['contactNotFound'] = new AutopilotException('Contact could not be found.', 404);
3737
$this->exceptions['listNotFound'] = new AutopilotException('List does not exist.', 404);

0 commit comments

Comments
 (0)