dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Replace PHPUnit's loose assertEquals(null) with assertNull()
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
unit
/
includes
/
session
/
SessionUnitTest.php
diff --git
a/tests/phpunit/unit/includes/session/SessionUnitTest.php
b/tests/phpunit/unit/includes/session/SessionUnitTest.php
index
b6e1d3a
..
7b2b299
100644
(file)
--- a/
tests/phpunit/unit/includes/session/SessionUnitTest.php
+++ b/
tests/phpunit/unit/includes/session/SessionUnitTest.php
@@
-104,7
+104,7
@@
class SessionUnitTest extends MediaWikiUnitTestCase {
$this->assertEquals( 'zero', $session->get( 0 ) );
$this->assertFalse( $backend->dirty );
$this->assertEquals( 'zero', $session->get( 0 ) );
$this->assertFalse( $backend->dirty );
- $this->assert
Equals( null,
$session->get( 'null' ) );
+ $this->assert
Null(
$session->get( 'null' ) );
$this->assertEquals( 'default', $session->get( 'null', 'default' ) );
$this->assertFalse( $backend->dirty );
$this->assertEquals( 'default', $session->get( 'null', 'default' ) );
$this->assertFalse( $backend->dirty );
@@
-165,7
+165,7
@@
class SessionUnitTest extends MediaWikiUnitTestCase {
$this->assertFalse( $backend->dirty );
$logger->setCollect( true );
$this->assertFalse( $backend->dirty );
$logger->setCollect( true );
- $this->assert
Equals( null,
$session['null'] );
+ $this->assert
Null(
$session['null'] );
$logger->setCollect( false );
$this->assertFalse( $backend->dirty );
$this->assertSame( [
$logger->setCollect( false );
$this->assertFalse( $backend->dirty );
$this->assertSame( [