-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #638 from TomHAnderson/hotfix/tests-feature-phpcs
Hotfix/tests feature phpcs
- Loading branch information
Showing
49 changed files
with
935 additions
and
1,071 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets; | ||
|
||
class InvalidDoctrineExtender | ||
{ | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets; | ||
|
||
use Doctrine\Common\EventManager; | ||
use Doctrine\DBAL\Connection; | ||
use Doctrine\ORM\Configuration; | ||
use LaravelDoctrine\ORM\DoctrineExtender; | ||
use LaravelDoctrineTest\ORM\Feature\DoctrineManagerTest; | ||
|
||
class MyDoctrineExtender implements DoctrineExtender | ||
{ | ||
public function extend(Configuration $configuration, Connection $connection, EventManager $eventManager): void | ||
{ | ||
(new DoctrineManagerTest())->assertExtendedCorrectly($configuration, $connection, $eventManager); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets\Testing; | ||
|
||
use Doctrine\ORM\Mapping\Column; | ||
use Doctrine\ORM\Mapping\Entity; | ||
use Doctrine\ORM\Mapping\GeneratedValue; | ||
use Doctrine\ORM\Mapping\Id; | ||
use Doctrine\ORM\Mapping\InverseJoinColumn; | ||
use Doctrine\ORM\Mapping\JoinColumn; | ||
use Doctrine\ORM\Mapping\JoinTable; | ||
use Doctrine\ORM\Mapping\ManyToMany; | ||
|
||
#[Entity] | ||
class EntityStub | ||
{ | ||
#[Id] | ||
#[GeneratedValue] | ||
#[Column(type: 'integer')] | ||
public mixed $id; | ||
|
||
#[Column(type: 'string')] | ||
public mixed $name; | ||
|
||
#[ManyToMany(targetEntity: 'EntityStub')] | ||
#[JoinTable(name: 'stub_stubs')] | ||
#[JoinColumn(name: 'owner_id', referencedColumnName: 'id')] | ||
#[InverseJoinColumn(name: 'owned_id', referencedColumnName: 'id')] | ||
public mixed $others; | ||
} |
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
Oops, something went wrong.