This reverts commit 823db5d63dd5200d04c63da50ba6bf16f928e70b. Change-Id: Ibb3e023e4eb6715295586dea87d0725c344a8271
22 lines
446 B
PHP
22 lines
446 B
PHP
<?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 );
|
|
}
|
|
|
|
}
|