File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ class ExceptionTest extends \PHPUnit_Framework_TestCase
38
38
public function testFactory ()
39
39
{
40
40
$ out = Exception::factory (255 , 'wtf ' );
41
- $ this ->assertTrue (get_class ( $ out) === ' Exception ' );
42
- $ this ->assertTrue ($ out ->getMessage () === 'wtf ' );
41
+ $ this ->assertTrue ($ out instanceof Exception \UnknownError );
42
+ $ this ->assertTrue ($ out ->getMessage () === 'An unknown server-side error occurred while processing the command. ' );
43
43
44
44
$ out = Exception::factory (Exception::SUCCESS );
45
- $ this ->assertTrue (get_class ( $ out) === ' Exception ' );
46
- $ this ->assertTrue ($ out ->getMessage () === 'Unknown Error ' );
45
+ $ this ->assertTrue ($ out instanceof Exception \UnknownError );
46
+ $ this ->assertTrue ($ out ->getMessage () === 'An unknown server-side error occurred while processing the command. ' );
47
47
48
48
$ out = Exception::factory (Exception::CURL_EXEC );
49
49
$ this ->assertTrue ($ out instanceof Exception \CurlExec);
You can’t perform that action at this time.
0 commit comments