This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Test; | |
use Doctrine\Persistence\ManagerRegistry; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Psr\Container\ContainerInterface; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
/** | |
* @template TEntity as object | |
*/ | |
class FirstLevelRepository | |
{ | |
/** | |
* @return TEntity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use DateTimeImmutable; | |
use Exception; | |
use PHPUnit\Framework\TestCase; | |
use App\Service\Service; | |
class ServiceTest extends TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use DateTimeImmutable; | |
use PHPUnit\Framework\TestCase; | |
use App\Entities\Entity; | |
class SomeIntegrationTest extends TestCase | |
{ | |
public function test_something_related_to_entity_creation_date() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use DateTimeImmutable; | |
use PHPUnit\Framework\TestCase; | |
use App\Entities\Entity; | |
use App\Service\Service; | |
class ServiceTest extends TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use DateTimeImmutable; | |
use PHPUnit\Framework\TestCase; | |
use App\Entities\Entity; | |
use App\Service\Service; | |
use SlopeIt\ClockMock\ClockMock; | |
class ServiceTest extends TestCase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use PHPUnit\Framework\TestCase; | |
use App\Entities\Entity; | |
use Carbon\CarbonImmutable; | |
class SomeIntegrationTest extends TestCase | |
{ | |
public function test_something_related_to_entity_creation_date() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use Carbon\Carbon; | |
use PHPUnit\Framework\TestCase; | |
use App\Entities\Entity; | |
use App\Service\Service; | |
class ServiceTest extends TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use DateTimeImmutable; | |
use Exception; | |
use PHPUnit\Framework\TestCase; | |
use App\Service\Service; | |
class ServiceTest extends TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Entity; | |
use Carbon\CarbonImmutable; | |
class Entity | |
{ | |
private CarbonImmutable $creationDate; |
NewerOlder