Early Access Program

PhpStorm 2018.1. EAP 181.3494.16

The new PhpStorm 2018.1 EAP build (181.3494.16) is now available! You can download it here or via JetBrains Toolbox App. Or, if you have the previous PhpStorm 2018.1 EAP build (181.3263.18) installed, you should soon get a notification in the IDE about a patch update.

This build delivers new features, bug fixes, and improvements for PHP and the Web, and includes the latest improvements in IntelliJ Platform.

REST Client: assertions support

We continue development of the new REST client, and in this EAP we’ve added support for assertions. The client object has received two new methods: test and assert. You can create a new test by using the following syntax:

client.test("Test name", function () { //test body })

Inside a test body, you can call client.assert(assertion, “Failure message”), where assertion is any expression evaluating to a Boolean. You can use any JavaScript (ECMAScript 5.1) code inside your test, for example, string.search method, if statements, and so on. Having written your test, execute a request and see the results of the tests in Tests tab.

rest_tests

We encourage you to try the new feature and share your thoughts on what is missing and which assertion would you like to see in future!

Codeception: code coverage support

This build brings code coverage for Codeception, that many of you have asked us to implement. It works exactly like PHPUnit coverage: simply press the Run with coverage button near the existing Codeception configuration, or right-click anywhere inside a Codeception class or method and select this item from the context menu. You will see the coverage results in the Project view as well as in the code editor’s left gutter: the covered code lines will be indicated with the green markers, while the uncovered lines – with red markers.

codeception_coverage

We’re reusing the Codeception configuration so you will need to have coverage configured on the Codeception side. You can read more about how to do that in the Codeception documentation.

Other features worth noting:

  • URL links in comments are not clickable in the editor WI-28548 
  • Suggest @internal and @deprecated last when autocompleting WI-37750 

Apart from new features, this build brings many important bug fixes and usability improvements, including these:

  • Fixed: Class aliases should be ignored if the class declaration with the same FQN exists WI-40295 
  • Fixed: search everywhere doesn’t get focus IDEA-124160 

See the full list of bug-fixes and improvements in our issue tracker and the complete release notes.

Download PhpStorm 2018.1 EAP 181.3494.16 for your platform from the project EAP page or click “Update” in your JetBrains Toolbox App. And please do report any bugs and feature request to our Issue Tracker.

Your JetBrains PhpStorm Team
The Drive to Develop

image description