mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 23:46:10 +01:00

[TASK] Add PhpStorm meta file (#312)

Add PhpStorm meta file for autocomplete of `GeneralUtility::makeInstance`, `getAccessibleMock` and `getAccessibleMockForAbstractClass` in unit tests
This commit is contained in:
Simon Schaufelberger 2021-10-02 10:17:59 +02:00 committed by GitHub
parent f49a8bcae3
commit 31f6a6600e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

36
.phpstorm.meta.php Normal file
View file

@ -0,0 +1,36 @@
<?php
/** @see https://www.jetbrains.com/help/phpstorm/ide-advanced-metadata.html */
namespace PHPSTORM_META {
override(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(0), type(0));
// TYPO3 testing framework
// The accesible mock will be of type "self" as well as "MockObject" and "AccessibleObjectInterface"
override(
\TYPO3\TestingFramework\Core\BaseTestCase::getAccessibleMock(0),
map([
'' => '@|\PHPUnit\Framework\MockObject\MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface',
])
);
override(
\TYPO3\TestingFramework\Core\BaseTestCase::getAccessibleMockForAbstractClass(0),
map([
'' => '@|\PHPUnit\Framework\MockObject\MockObject|\TYPO3\TestingFramework\Core\AccessibleObjectInterface',
])
);
// Nimut testing framework
// The accesible mock will be of type "self" as well as "MockObject" and "AccessibleMockObjectInterface"
override(
\Nimut\TestingFramework\TestCase\AbstractTestCase::getAccessibleMock(0),
map([
'' => '@|\PHPUnit\Framework\MockObject\MockObject|\Nimut\TestingFramework\MockObject\AccessibleMockObjectInterface',
])
);
override(
\Nimut\TestingFramework\TestCase\AbstractTestCase::getAccessibleMockForAbstractClass(0),
map([
'' => '@|\PHPUnit\Framework\MockObject\MockObject|\Nimut\TestingFramework\MockObject\AccessibleMockObjectInterface',
])
);
}