This reverts commit 0a2b996278.
Reason for revert: Broke postgres tests.
Change-Id: I27d8e0c807ad5f0748b9611a4f3df84cc213fbe1
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 );
|
|
}
|
|
|
|
}
|