David Maicher
David Maicher
Feel free to look into it :+1: A workaround might be something like this (not tested): ```php use DAMA\DoctrineTestBundle\Doctrine\DBAL\StaticDriver; use PHPUnit\Framework\TestCase; class MyTestWithoutDAMATransactionManagement extends TestCase { public static function setUpBeforeClass():...
I also recently had a use-case for this on one of my apps. I looked into it a bit and with the current PHPUnit Extensions this seems rather complicated to...
Hmm that is interesting :confused: How exactly are you running your tests? Are you doing some parallel execution in multiple php processes? If you could somehow give me a minimal...
Ok I see :wink: One idea could be to put this call https://github.com/dmaicher/doctrine-test-bundle/blob/master/src/DAMA/DoctrineTestBundle/PHPUnit/PHPUnitListener.php#L23 here https://github.com/dmaicher/doctrine-test-bundle/blob/master/src/DAMA/DoctrineTestBundle/PHPUnit/PHPUnitListener.php#L13
@BonBonSlick I'm not personally using process isolation in any of my projects. If you are interested in supporting it then feel free to dig into it and create a PR....
No this is currently not supported. This bundle really aims to have all tests independent of each other when it comes to the database state. I do see that this...
If I understand the test correctly: Can you not do this? ```php $user = (new User()) ->setGithubId(4242) ->setUsername('uCustom') ->setPlainPassword(uniqid()) ->setEmail('[email protected]') $this->userManager->updateUser($user); ... $loadedUser = $this->userProvider->loadUserByOAuthUserResponse( $this->createUserResponseMock( $this->container->get('hwi_oauth.resource_owner.github') ) ); static::assertSame($user->getId(),...
@mnapoli actually very similar to a workaround I have in some tests :see_no_evil: For me there is no need to catch any exceptions though: ```php public function setUp(): void {...
Nice addition! @mynameisbogdan could you rebase with latest master and mention this in the changelog?
> Still looking for a reliable language detector that works well with short sentences in case anyone finds one please share @vesper8 https://github.com/fntlnz/cld2-php-ext works good for my use-cases also with...