Move trivially compatible tests to the unit tests suite
[lhc/web/wiklou.git] / tests / phpunit / unit / includes / session / SessionIdTest.php
1 <?php
2
3 namespace MediaWiki\Session;
4
5 /**
6 * @group Session
7 * @covers MediaWiki\Session\SessionId
8 */
9 class SessionIdTest extends \MediaWikiUnitTestCase {
10
11 public function testEverything() {
12 $id = new SessionId( 'foo' );
13 $this->assertSame( 'foo', $id->getId() );
14 $this->assertSame( 'foo', (string)$id );
15 $id->setId( 'bar' );
16 $this->assertSame( 'bar', $id->getId() );
17 $this->assertSame( 'bar', (string)$id );
18 }
19
20 }