MediaWiki REL1_32
SessionIdTest.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Session;
4
6
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}
Session MediaWiki\Session\SessionId.
Value object holding the session ID in a manner that can be globally updated.
Definition SessionId.php:38