File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ class Unit extends \Codeception\Module
10
10
/**
11
11
* Assert instanceof against an object
12
12
*
13
- * @param $class
14
- * @param $object
13
+ * @param $class
14
+ * @param $object
15
+ * @param string $description
15
16
*/
16
- public function assertInstanceOf ($ class , $ object )
17
+ public function assertInstanceOf ($ class , $ object, $ description = '' )
17
18
{
18
19
if (! is_object ($ object )) {
19
20
throw new \PHPUnit_Framework_ExpectationFailedException ($ object . ' is a ' . gettype ($ object ) . ' not an instance of ' . $ class );
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class AutopilotCest
31
31
32
32
public function __construct ()
33
33
{
34
- $ this ->pilot = new AutopilotManager ();
34
+ $ this ->pilot = new AutopilotManager (' key ' );
35
35
36
36
$ this ->exceptions ['contactNotFound ' ] = new AutopilotException ('Contact could not be found. ' , 404 );
37
37
$ this ->exceptions ['listNotFound ' ] = new AutopilotException ('List does not exist. ' , 404 );
You can’t perform that action at this time.
0 commit comments