Init RTD v2 config

This commit is contained in:
borislavsabev
2023-09-20 15:49:24 +03:00
parent d9439e3650
commit b8aa050a73
43 changed files with 63 additions and 47 deletions

View File

@@ -62,5 +62,5 @@ Tests/DataMapperTest.php
:language: php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/main/Structural/DataMapper
.. _`GitHub`: https://github.com/DesignPatternsPHP/DesignPatternsPHP/tree/main/Structural/DataMapper
.. __: http://en.wikipedia.org/wiki/Data_mapper_pattern

View File

@@ -14,7 +14,7 @@ class DataMapperTest extends TestCase
{
public function testCanMapUserFromStorage()
{
$storage = new StorageAdapter([1 => ['username' => 'domnikl', 'email' => 'liebler.dominik@gmail.com']]);
$storage = new StorageAdapter([1 => ['username' => 'someone', 'email' => 'someone@example.com']]);
$mapper = new UserMapper($storage);
$user = $mapper->findById(1);