MediaWiki
REL1_31
SessionIdTest.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Session
;
4
5
use
MediaWikiTestCase
;
6
11
class
SessionIdTest
extends
MediaWikiTestCase
{
12
13
public
function
testEverything
() {
14
$id =
new
SessionId
(
'foo'
);
15
$this->assertSame(
'foo'
, $id->getId() );
16
$this->assertSame(
'foo'
, (
string
)$id );
17
$id->setId(
'bar'
);
18
$this->assertSame(
'bar'
, $id->getId() );
19
$this->assertSame(
'bar'
, (
string
)$id );
20
}
21
22
}
MediaWikiTestCase
Definition
MediaWikiTestCase.php:17
MediaWiki\Session\SessionIdTest
Session MediaWiki\Session\SessionId.
Definition
SessionIdTest.php:11
MediaWiki\Session\SessionIdTest\testEverything
testEverything()
Definition
SessionIdTest.php:13
MediaWiki\Session\SessionId
Value object holding the session ID in a manner that can be globally updated.
Definition
SessionId.php:38
MediaWiki\Session
Definition
BotPasswordSessionProvider.php:24
tests
phpunit
includes
session
SessionIdTest.php
Generated on Mon Nov 25 2024 15:36:33 for MediaWiki by
1.10.0