Move ResultWrapper subclasses to Rdbms
[mediawiki.git] / tests / phpunit / includes / session / SessionIdTest.php
blob2b06d971a6ec0fe2f1c9fcd2b89f2f384e5afabe
1 <?php
3 namespace MediaWiki\Session;
5 use MediaWikiTestCase;
7 /**
8 * @group Session
9 * @covers MediaWiki\Session\SessionId
11 class SessionIdTest extends MediaWikiTestCase {
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 );