Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -30,7 +30,7 @@ class ErrorHandlerTest extends PHPUnit_Framework_TestCase
|
||||
ErrorHandler::init();
|
||||
$eh = set_error_handler($my_eh);
|
||||
$this->assertInternalType('array', $eh);
|
||||
$this->assertEquals($eh, $my_eh);
|
||||
$this->assertSame($eh, $my_eh);
|
||||
}
|
||||
|
||||
public function testHandleError()
|
||||
@ -65,11 +65,11 @@ class ErrorHandlerTest extends PHPUnit_Framework_TestCase
|
||||
$method = $class->getMethod('WrapTrace');
|
||||
$method->setAccessible(true);
|
||||
$result = $method->invoke(null, "first line\nsecond line");
|
||||
$this->assertEquals("<code>first line<br />\nsecond line</code>", $result);
|
||||
$this->assertSame("<code>first line<br />\nsecond line</code>", $result);
|
||||
$result = $method->invoke(null, "first line\r\nsecond line");
|
||||
$this->assertEquals("<code>first line<br />\r\nsecond line</code>", $result);
|
||||
$this->assertSame("<code>first line<br />\r\nsecond line</code>", $result);
|
||||
$result = $method->invoke(null, "first line\r\n\r\nsecond line");
|
||||
$this->assertEquals("<code>first line<br />\r\n<br />\r\nsecond line</code>", $result);
|
||||
$this->assertSame("<code>first line<br />\r\n<br />\r\nsecond line</code>", $result);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
|
Reference in New Issue
Block a user