3 namespace MediaWiki\Session
;
7 * @covers MediaWiki\Session\SessionId
9 class SessionIdTest
extends \MediaWikiUnitTestCase
{
11 public function testEverything() {
12 $id = new SessionId( 'foo' );
13 $this->assertSame( 'foo', $id->getId() );
14 $this->assertSame( 'foo', (string)$id );
16 $this->assertSame( 'bar', $id->getId() );
17 $this->assertSame( 'bar', (string)$id );