Skip to content

Commit 2dfe53f

Browse files
committed
Amended Coding Style
1 parent 4ebe6b7 commit 2dfe53f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

tests/Gedmo/Blameable/BlameableUuidTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Gedmo\Tests\Blameable;
1313

1414
use Doctrine\Common\EventManager;
15-
use Gedmo\Tests\Blameable\Fixture\Entity\Company;
1615
use Gedmo\Blameable\Blameable;
1716
use Gedmo\Blameable\BlameableListener;
17+
use Gedmo\Tests\Blameable\Fixture\Entity\Company;
1818
use Gedmo\Tests\Tool\BaseTestCaseORM;
1919
use Ramsey\Uuid\Uuid;
2020
use Ramsey\Uuid\UuidInterface;
@@ -24,7 +24,7 @@ final class BlameableUuidTest extends BaseTestCaseORM
2424
private const COMPANY = Company::class;
2525

2626
/**
27-
* @var UuidInterface $uuid
27+
* @var UuidInterface
2828
*/
2929
private $uuid;
3030

@@ -48,7 +48,7 @@ public function testBlameableUuid(): void
4848
$company = new Company();
4949
$company->setName('ACME');
5050

51-
BlameableUuidTest::assertInstanceOf(Blameable::class, $company);
51+
self::assertInstanceOf(Blameable::class, $company);
5252

5353
$this->em->persist($company);
5454
$this->em->flush();
@@ -61,7 +61,7 @@ public function testBlameableUuid(): void
6161
$created = $foundCompany->getCreated();
6262
$createdUuid = $created instanceof UuidInterface ? $created->toString() : null;
6363

64-
BlameableUuidTest::assertSame($this->uuid->toString(), $createdUuid);
64+
self::assertSame($this->uuid->toString(), $createdUuid);
6565
}
6666

6767
protected function getUsedEntityFixtures(): array

tests/bootstrap.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Doctrine\Common\Annotations\AnnotationReader;
1313
use Doctrine\Common\Annotations\PsrCachedReader;
1414
use Symfony\Component\Cache\Adapter\ArrayAdapter;
15+
use Doctrine\DBAL\Types\Type;
16+
use Ramsey\Uuid\Doctrine\UuidType;
1517

1618
/*
1719
* This is bootstrap for phpUnit unit tests,
@@ -23,12 +25,12 @@
2325
*/
2426

2527
define('TESTS_PATH', __DIR__);
26-
define('TESTS_TEMP_DIR', sys_get_temp_dir().'/doctrine-extension-tests');
28+
define('TESTS_TEMP_DIR', sys_get_temp_dir() . '/doctrine-extension-tests');
2729

28-
require dirname(__DIR__).'/vendor/autoload.php';
30+
require dirname(__DIR__) . '/vendor/autoload.php';
2931

3032
$reader = new AnnotationReader();
3133
$reader = new PsrCachedReader($reader, new ArrayAdapter());
3234
$_ENV['annotation_reader'] = $reader;
3335

34-
\Doctrine\DBAL\Types\Type::addType('uuid', 'Ramsey\Uuid\Doctrine\UuidType');
36+
Type::addType('uuid', UuidType::class);

0 commit comments

Comments
 (0)