Skip to content

Commit

Permalink
Rename TestSession to SessionTrainer
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Aug 20, 2023
1 parent dd88416 commit 4152f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/TestSession.php → src/SessionTrainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* Do not use this implementation in production!
*/
final class TestSession
final class SessionTrainer
{
private readonly LocalSessionStorage $backingStorage;
private readonly TestSessionIdGenerator $idGenerator;
Expand Down
8 changes: 4 additions & 4 deletions test/TestSessionTest.php → test/SessionTrainerTest.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

use Amp\Http\Server\Session\Session;
use Amp\Http\Server\Session\TestSession;
use Amp\Http\Server\Session\SessionTrainer;
use PHPUnit\Framework\TestCase;

class TestSessionTest extends TestCase
class SessionTrainerTest extends TestCase
{
private TestSession $testSession;
private SessionTrainer $testSession;

protected function setUp(): void
{
$this->testSession = new TestSession();
$this->testSession = new SessionTrainer();
$this->testSession->givenSession('a', [
'foo' => 42,
'bar' => false,
Expand Down

0 comments on commit 4152f2c

Please sign in to comment.