idea-php-phpunit-plugin icon indicating copy to clipboard operation
idea-php-phpunit-plugin copied to clipboard

IntelliJ IDEA / PhpStorm PHPUnit Enhancement Plugin

Results 25 idea-php-phpunit-plugin issues
Sort by recently updated
recently updated
newest added

Windows 7 PhpStrom 2021.2 There is 3 exceptions after start: ``` com.intellij.diagnostic.PluginException: Short name not matched for class de.espend.idea.php.phpunit.inspection.ReplaceLegacyMockeryInspection: getShortName() = #ReplaceLegacyMockeryInspection; ep.shortName = #replaceLegacyMockerySyntax [Plugin: de.espend.idea.php.phpunit] at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:82) at...

Got following exception while upgrading plugin to 5.0. PhpStorm 2020.2 >com.intellij.diagnostic.PluginException: Intention Description Dir URL is null: PHPUnit; AddMethodIntention; while looking for description.html [Plugin: de.espend.idea.php.phpunit] at com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData.getResourceLocation(IntentionActionMetaData.java:63) at com.intellij.codeInsight.intention.impl.config.BeforeAfterActionMetaData.getDescription(BeforeAfterActionMetaData.java:126) at...

PHPUnit Enhancement: 5.1 PHPStorm: 2020.3.2 ``` java.lang.Throwable: Non-idempotent computation: it returns different results when invoked multiple times or on different threads: PhpClass: CaseFunctionTest (class com.jetbrains.php.lang.psi.elements.impl.PhpClassImpl) != PhpClass: ScoreComputerTest (class com.jetbrains.php.lang.psi.elements.impl.PhpClassImpl)...

I'm using version 5.0 of the plugin and PHPStorm 2020.2 ``` com.intellij.diagnostic.PluginException: Intention Description Dir URL is null: PHPUnit; AddMethodIntention; while looking for description.html [Plugin: de.espend.idea.php.phpunit] at com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData.getResourceLocation(IntentionActionMetaData.java:63) at com.intellij.codeInsight.intention.impl.config.BeforeAfterActionMetaData.getDescription(BeforeAfterActionMetaData.java:126)...

PhpStorm complains about the type being wrong for methods with typed arguments because the annotated return value of `reveal()` is `object` and (I _think_) this plugin adds `ProphecySubjectInterface`. If `mixed`...

It seems that the method `willImplement` is not supported ```php $mock = $this->prophesize(SomeClass::class) ->willImplement(FirstInterface::class) ->willImplement(SecondInterface::class); ``` Above code will return `$mock` variable which implements: `SomeClass::class`, `FirstInterface::class`, `SecondInterface::class`

Following issue #29, also support - Argument::type('null') - Argument::exact - Argument::is for magic Prophecy methods

Currently, using a Prophecy argument token when writing a Prophecy mock triggers a warning about invalid type. Instead, all magic mock method should have their arguments accepting their original argument...

fixed

![screenshot 2018-12-04 at 13 25 08](https://user-images.githubusercontent.com/105991/49444820-320c8000-f7c8-11e8-86ec-df5c18c2aac2.png) Using `Argument::cetra()` from Prophecy allows you to bypass required parameters in assertions. This is particularly useful when saying `shouldNotBeCalled` as you want to catch...

api issues

When a prophesize class have a method with optional return the mocked method accuses an error of possibility of null pointer exception: Warning on mocked method: ![deepinscreenshot_select-area_20171219151119](https://user-images.githubusercontent.com/516426/34171097-4dea477e-e4d4-11e7-82f2-41f9b9f87339.png) Error accused: ![deepinscreenshot_select-area_20171219151755](https://user-images.githubusercontent.com/516426/34171105-544e04d4-e4d4-11e7-9327-71aff446219c.png)...

api issues