Skip to content

Commit f41dd22

Browse files
committed
Fix unit test
1 parent 9de13a0 commit f41dd22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Test/WebDriver/ExceptionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)