idea-php-phpunit-plugin
idea-php-phpunit-plugin copied to clipboard
IntelliJ IDEA / PhpStorm PHPUnit Enhancement Plugin
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...
 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...
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:  Error accused: ...