Skip to content

Commit

Permalink
Fix namespace ussage
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel committed Jul 21, 2019
1 parent 7553964 commit a293cc7
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/Cache/CacheLoggerChainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CacheLoggerChainTest extends DoctrineTestCase
/** @var CacheLoggerChain */
private $logger;

/** @var \PHPUnit\Framework\MockObject\MockObject|CacheLogger */
/** @var MockObject|CacheLogger */
private $mock;

protected function setUp() : void
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/CommitOrderCalculatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CommitOrderCalculatorTest extends OrmTestCase
/** @var CommitOrderCalculator */
private $calc;

/** @var ClassMetadataBuildingContext|\PHPUnit\Framework\MockObject\MockObject */
/** @var ClassMetadataBuildingContext|MockObject */
private $metadataBuildingContext;

protected function setUp() : void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

class EntityManagerDecoratorTest extends DoctrineTestCase
{
/** @var EntityManagerInterface|\PHPUnit\Framework\MockObject\MockObject */
/** @var EntityManagerInterface|MockObject */
private $wrapped;

/** @var EntityManagerDecorator|\PHPUnit\Framework\MockObject\MockObject */
/** @var EntityManagerDecorator|MockObject */
private $decorator;

public function setUp() : void
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2359Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testIssue() : void
$mockPlatform = $this->createMock(AbstractPlatform::class);
$entityManager = $this->createMock(EntityManagerInterface::class);

/** @var ClassMetadataFactory|\PHPUnit\Framework\MockObject\MockObject $metadataFactory */
/** @var ClassMetadataFactory|MockObject $metadataFactory */
$metadataFactory = $this->getMockBuilder(ClassMetadataFactory::class)
->setMethods(['doLoadMetadata', 'getTargetPlatform', 'wakeupReflection'])
->getMock();
Expand Down
6 changes: 3 additions & 3 deletions tests/Doctrine/Tests/ORM/Hydration/AbstractHydratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
*/
class AbstractHydratorTest extends OrmFunctionalTestCase
{
/** @var EventManager|\PHPUnit\Framework\MockObject\MockObject */
/** @var EventManager|MockObject */
private $mockEventManager;

/** @var Statement|\PHPUnit\Framework\MockObject\MockObject */
/** @var Statement|MockObject */
private $mockStatement;

/** @var ResultSetMapping|\PHPUnit\Framework\MockObject\MockObject */
/** @var ResultSetMapping|MockObject */
private $mockResultMapping;

/** @var AbstractHydrator */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
*/
class HydrationCompleteHandlerTest extends DoctrineTestCase
{
/** @var ListenersInvoker|\PHPUnit\Framework\MockObject\MockObject */
/** @var ListenersInvoker|MockObject */
private $listenersInvoker;

/** @var EntityManagerInterface|\PHPUnit\Framework\MockObject\MockObject */
/** @var EntityManagerInterface|MockObject */
private $entityManager;

/** @var HydrationCompleteHandler */
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/LazyCriteriaCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class LazyCriteriaCollectionTest extends DoctrineTestCase
{
/** @var EntityPersister|\PHPUnit\Framework\MockObject\MockObject */
/** @var EntityPersister|MockObject */
private $persister;

/** @var Criteria */
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ORM/Mapping/ClassMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

class ClassMetadataTest extends OrmTestCase
{
/** @var Mapping\ClassMetadataBuildingContext|\PHPUnit\Framework\MockObject\MockObject */
/** @var Mapping\ClassMetadataBuildingContext|MockObject */
private $metadataBuildingContext;

public function setUp() : void
Expand Down
6 changes: 3 additions & 3 deletions tests/Doctrine/Tests/ORM/PersistentCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function testClearWillAlsoResetKeyPositions() : void
*/
public function testWillKeepNewItemsInDirtyCollectionAfterInitialization() : void
{
/** @var UnitOfWork|\PHPUnit\Framework\MockObject\MockObject $unitOfWork */
/** @var UnitOfWork|MockObject $unitOfWork */
$unitOfWork = $this->createMock(UnitOfWork::class);

$this->emMock->setUnitOfWork($unitOfWork);
Expand Down Expand Up @@ -191,7 +191,7 @@ public function testWillKeepNewItemsInDirtyCollectionAfterInitialization() : voi
*/
public function testWillDeDuplicateNewItemsThatWerePreviouslyPersistedInDirtyCollectionAfterInitialization() : void
{
/** @var UnitOfWork|\PHPUnit\Framework\MockObject\MockObject $unitOfWork */
/** @var UnitOfWork|MockObject $unitOfWork */
$unitOfWork = $this->createMock(UnitOfWork::class);

$this->emMock->setUnitOfWork($unitOfWork);
Expand Down Expand Up @@ -235,7 +235,7 @@ public function testWillDeDuplicateNewItemsThatWerePreviouslyPersistedInDirtyCol
*/
public function testWillNotMarkCollectionAsDirtyAfterInitializationIfNoElementsWereAdded() : void
{
/** @var UnitOfWork|\PHPUnit\Framework\MockObject\MockObject $unitOfWork */
/** @var UnitOfWork|MockObject $unitOfWork */
$unitOfWork = $this->createMock(UnitOfWork::class);

$this->emMock->setUnitOfWork($unitOfWork);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function buildClassMetadata($className)
}

/**
* @return EntityManagerInterface|\PHPUnit\Framework\MockObject\MockObject
* @return EntityManagerInterface|MockObject
*/
private function createEntityManager()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/ORM/UnitOfWorkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ class UnitOfWorkTest extends OrmTestCase
*/
private $emMock;

/** @var EventManager|\PHPUnit\Framework\MockObject\MockObject */
/** @var EventManager|MockObject */
private $eventManager;

/** @var ClassMetadataBuildingContext|\PHPUnit\Framework\MockObject\MockObject */
/** @var ClassMetadataBuildingContext|MockObject */
private $metadataBuildingContext;

protected function setUp() : void
Expand Down

0 comments on commit a293cc7

Please sign in to comment.