Type hint against LinkTarget in WatchedItemStore
[lhc/web/wiklou.git] / tests / phpunit / includes / session / SessionIdTest.php
1 <?php
2
3 namespace MediaWiki\Session;
4
5 use MediaWikiTestCase;
6
7 /**
8 * @group Session
9 * @covers MediaWiki\Session\SessionId
10 */
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 }