summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/includes/session/SessionIdTest.php
blob: 2b06d971a6ec0fe2f1c9fcd2b89f2f384e5afabe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace MediaWiki\Session;

use MediaWikiTestCase;

/**
 * @group Session
 * @covers MediaWiki\Session\SessionId
 */
class SessionIdTest extends MediaWikiTestCase {

	public function testEverything() {
		$id = new SessionId( 'foo' );
		$this->assertSame( 'foo', $id->getId() );
		$this->assertSame( 'foo', (string)$id );
		$id->setId( 'bar' );
		$this->assertSame( 'bar', $id->getId() );
		$this->assertSame( 'bar', (string)$id );
	}

}