Skip to content

Commit

Permalink
Housekeeping: phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei authored and greg0ire committed Nov 7, 2020
1 parent c226a44 commit c041104
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/Doctrine/Tests/ORM/Functional/Ticket/DDC144Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ protected function setUp() : void
$this->_em->getClassMetadata(DDC144Operand::class),
]
);

}

/**
Expand Down
7 changes: 4 additions & 3 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3123Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Doctrine\ORM\Events;
use Doctrine\ORM\UnitOfWork;
use Doctrine\Tests\Models\CMS\CmsUser;
use ReflectionClass;
use ReflectionObject;

/**
* @group DDC-3123
Expand Down Expand Up @@ -38,8 +38,9 @@ public function testIssue()
->expects($this->once())
->method(Events::postFlush)
->will($this->returnCallback(function () use ($uow, $test) {
$class = new ReflectionClass(UnitOfWork::class);
$property = $class->getProperty('extraUpdates');
$reflection = new ReflectionObject($uow);
$property = $reflection->getProperty('extraUpdates');

$property->setAccessible(true);
$test->assertEmpty(
$property->getValue($uow),
Expand Down

0 comments on commit c041104

Please sign in to comment.