Skip to content

Commit dce10d6

Browse files
committed
test fixtures
1 parent 6047c1c commit dce10d6

File tree

176 files changed

+176
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+176
-176
lines changed

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\MappedSuperclass]
8-
class BaseClient
8+
final class BaseClient
99
{
1010
use TeamTrait;
1111

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
#[ORM\Entity]
10-
class Client extends BaseClient
10+
final class Client extends BaseClient
1111
{
1212
use TimestampableTrait;
1313

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Embeddable]
9-
class Embed
9+
final class Embed
1010
{
1111
#[ORM\Column]
1212
private ?int $val = null;

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class Tag
9+
final class Tag
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
#[ORM\Entity]
10-
class User
10+
final class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\Entity]
8-
class UserAvatar
8+
final class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/UserProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class UserProfile
9+
final class UserProfile
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\MappedSuperclass]
8-
class BaseClient
8+
final class BaseClient
99
{
1010
use TeamTrait;
1111

tests/Doctrine/fixtures/expected_overwrite/src/Entity/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
#[ORM\Entity]
10-
class Client extends BaseClient
10+
final class Client extends BaseClient
1111
{
1212
use TimestampableTrait;
1313

tests/Doctrine/fixtures/expected_overwrite/src/Entity/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Embeddable]
9-
class Embed
9+
final class Embed
1010
{
1111
#[ORM\Column]
1212
private ?int $val = null;

tests/Doctrine/fixtures/expected_overwrite/src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class Tag
9+
final class Tag
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
#[ORM\Entity]
10-
class User
10+
final class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\Entity]
8-
class UserAvatar
8+
final class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/UserProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class UserProfile
9+
final class UserProfile
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/expected_xml/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Symfony\Bundle\MakerBundle\Tests\tmp\current_project_xml\src\Entity;
44

5-
class UserAvatar
5+
final class UserAvatar
66
{
77
private ?int $id = null;
88

tests/Doctrine/fixtures/expected_xml/src/Entity/UserXml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\Common\Collections\ArrayCollection;
66
use Doctrine\Common\Collections\Collection;
77

8-
class UserXml
8+
final class UserXml
99
{
1010
private $id;
1111

tests/Doctrine/fixtures/expected_xml/src/Entity/XOther.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Symfony\Bundle\MakerBundle\Tests\tmp\current_project_xml\src\Entity;
44

5-
class XOther
5+
final class XOther
66
{
77
private ?int $id = null;
88

tests/Doctrine/fixtures/expected_xml/src/Repository/UserRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @extends ServiceEntityRepository<UserXml>
1111
*/
12-
class UserRepository extends ServiceEntityRepository
12+
final class UserRepository extends ServiceEntityRepository
1313
{
1414
public function __construct(ManagerRegistry $registry)
1515
{

tests/Doctrine/fixtures/expected_xml/src/Repository/XOtherRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @extends ServiceEntityRepository<XOther>
1111
*/
12-
class XOtherRepository extends ServiceEntityRepository
12+
final class XOtherRepository extends ServiceEntityRepository
1313
{
1414
public function __construct(ManagerRegistry $registry)
1515
{

tests/Doctrine/fixtures/source_project/src/Entity/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\MappedSuperclass]
8-
class BaseClient
8+
final class BaseClient
99
{
1010
use TeamTrait;
1111

tests/Doctrine/fixtures/source_project/src/Entity/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class Client extends BaseClient
9+
final class Client extends BaseClient
1010
{
1111
use TimestampableTrait;
1212

tests/Doctrine/fixtures/source_project/src/Entity/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Embeddable]
9-
class Embed
9+
final class Embed
1010
{
1111
#[ORM\Column]
1212
private ?int $val = null;

tests/Doctrine/fixtures/source_project/src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class Tag
9+
final class Tag
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/source_project/src/Entity/TeamTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Doctrine\ORM\Mapping as ORM;
66

7-
trait TeamTrait
7+
final trait TeamTrait
88
{
99
#[ORM\ManyToMany(targetEntity: User::class)]
1010
private $members;

tests/Doctrine/fixtures/source_project/src/Entity/TimestampableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\DBAL\Types\Types;
66
use Doctrine\ORM\Mapping as ORM;
77

8-
trait TimestampableTrait
8+
final trait TimestampableTrait
99
{
1010
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
1111
private ?\DateTimeInterface $createdAt = null;

tests/Doctrine/fixtures/source_project/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
#[ORM\Entity]
10-
class User
10+
final class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/source_project/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\Entity]
8-
class UserAvatar
8+
final class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/source_project/src/Entity/UserProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\Mapping as ORM;
77

88
#[ORM\Entity]
9-
class UserProfile
9+
final class UserProfile
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]

tests/Doctrine/fixtures/xml_source_project/src/Entity/UserXml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Symfony\Bundle\MakerBundle\Tests\tmp\current_project_xml\src\Entity;
44

5-
class UserXml
5+
final class UserXml
66
{
77
private $id;
88

tests/Security/fixtures/expected/SecurityController_login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Routing\Attribute\Route;
88
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
99

10-
class SecurityController extends AbstractController
10+
final class SecurityController extends AbstractController
1111
{
1212
#[Route(path: '/login', name: 'app_login')]
1313
public function login(AuthenticationUtils $authenticationUtils): Response

tests/Security/fixtures/expected/SecurityController_login_logout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Component\Routing\Attribute\Route;
88
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
99

10-
class SecurityController extends AbstractController
10+
final class SecurityController extends AbstractController
1111
{
1212
#[Route(path: '/login', name: 'app_login')]
1313
public function login(AuthenticationUtils $authenticationUtils): Response

tests/Security/fixtures/expected/SecurityController_logout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
66
use Symfony\Component\Routing\Attribute\Route;
77

8-
class SecurityController extends AbstractController
8+
final class SecurityController extends AbstractController
99
{
1010
#[Route(path: '/logout', name: 'app_logout')]
1111
public function logout(): void

tests/Security/fixtures/expected/UserEntityWithEmailAsIdentifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#[ORM\Entity]
1010
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])]
11-
class User implements UserInterface, PasswordAuthenticatedUserInterface
11+
final class User implements UserInterface, PasswordAuthenticatedUserInterface
1212
{
1313
#[ORM\Id]
1414
#[ORM\GeneratedValue]

tests/Security/fixtures/expected/UserEntityWithPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#[ORM\Entity]
1010
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_USER_IDENTIFIER', fields: ['userIdentifier'])]
11-
class User implements UserInterface, PasswordAuthenticatedUserInterface
11+
final class User implements UserInterface, PasswordAuthenticatedUserInterface
1212
{
1313
#[ORM\Id]
1414
#[ORM\GeneratedValue]

tests/Security/fixtures/expected/UserEntityWithUser_IdentifierAsIdentifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#[ORM\Entity]
1010
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_USER_IDENTIFIER', fields: ['user_identifier'])]
11-
class User implements UserInterface, PasswordAuthenticatedUserInterface
11+
final class User implements UserInterface, PasswordAuthenticatedUserInterface
1212
{
1313
#[ORM\Id]
1414
#[ORM\GeneratedValue]

tests/Security/fixtures/expected/UserEntityWithoutPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#[ORM\Entity]
99
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_USER_IDENTIFIER', fields: ['userIdentifier'])]
10-
class User implements UserInterface
10+
final class User implements UserInterface
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]

tests/Security/fixtures/expected/UserModelWithEmailAsIdentifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
66
use Symfony\Component\Security\Core\User\UserInterface;
77

8-
class User implements UserInterface, PasswordAuthenticatedUserInterface
8+
final class User implements UserInterface, PasswordAuthenticatedUserInterface
99
{
1010
private $email;
1111

tests/Security/fixtures/expected/UserModelWithPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
66
use Symfony\Component\Security\Core\User\UserInterface;
77

8-
class User implements UserInterface, PasswordAuthenticatedUserInterface
8+
final class User implements UserInterface, PasswordAuthenticatedUserInterface
99
{
1010
private $userIdentifier;
1111

tests/Security/fixtures/expected/UserModelWithoutPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Symfony\Component\Security\Core\User\UserInterface;
66

7-
class User implements UserInterface
7+
final class User implements UserInterface
88
{
99
private $userIdentifier;
1010

tests/Security/fixtures/source/SecurityController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
66

7-
class SecurityController extends AbstractController
7+
final class SecurityController extends AbstractController
88
{
99
}

tests/Security/fixtures/source/UserEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctrine\ORM\Mapping as ORM;
66

77
#[ORM\Entity]
8-
class User
8+
final class User
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]

tests/Security/fixtures/source/UserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
namespace App\Security;
44

5-
class User
5+
final class User
66
{
77
}

tests/Util/fixtures/add_class_attribute/User_empty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
use Doctrine\ORM\Mapping\Entity;
66

77
#[Entity]
8-
class User
8+
final class User
99
{
1010
}

tests/Util/fixtures/add_class_attribute/User_simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#[ORM\Entity]
99
#[Column(message: 'We use this attribute for class level tests so we dont have to add additional test dependencies.')]
10-
class User
10+
final class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]

0 commit comments

Comments
 (0)