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
3838 public function testFactory ()
3939 {
4040 $ 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. ' );
4343
4444 $ 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. ' );
4747
4848 $ out = Exception::factory (Exception::CURL_EXEC );
4949 $ this ->assertTrue ($ out instanceof Exception \CurlExec);
You can’t perform that action at this time.
0 commit comments