This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Xdebug support in PHPStorm #282
Open
haringsrob
wants to merge
14
commits into
Behat:master
Choose a base branch
from
haringsrob:feature/xdebug-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
87732a6
Xdebug support, mocking and tests
haringsrob ed53591
Coding standards and simplefied mocking
haringsrob 89a5c7c
Remove phpunit
haringsrob 5005c1b
Remove double break
haringsrob ea815b1
Remove http mocking
haringsrob e4a3989
Update behat.yml.dist
haringsrob fde2070
Create search.feature
haringsrob 0d9524c
Create xdebug.feature
haringsrob 914a018
Revert composer json indentation
haringsrob 4831d53
Remove idea from gitignore
haringsrob b4325e1
Apply correct standards, use existing assertion
haringsrob db9516a
Merge branch 'feature/xdebug-support' of github.com:haringsrob/MinkEx…
haringsrob 9eae501
Remove php 5.3 and hhvm from travis
haringsrob a037047
Update php version in composer.json
haringsrob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.phar | ||
composer.lock | ||
vendor | ||
behat.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,9 @@ cache: | |
- $HOME/.composer/cache/files | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
|
||
matrix: | ||
include: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Behat\MinkExtension\Tests; | ||
|
||
use Behat\Mink\Exception\ExpectationException; | ||
use Behat\MinkExtension\Context\RawMinkContext; | ||
|
||
/** | ||
* Feature context for testing advanced scenarios. | ||
*/ | ||
class FeatureContext extends RawMinkContext | ||
{ | ||
|
||
/** | ||
* @BeforeScenario @MockXdebug | ||
*/ | ||
public function setUpXdebugMock() | ||
{ | ||
$_SERVER['XDEBUG_CONFIG'] = 'xdebug'; | ||
} | ||
|
||
/** | ||
* @Then /^I should have the "([^"]*)" cookie with value "([^"]*)"$/ | ||
*/ | ||
public function iShouldHaveTheCookieWithValue($cookieName, $cookieExpectedValue) | ||
{ | ||
$this->assertSession()->cookieEquals($cookieName, $cookieExpectedValue); | ||
} | ||
|
||
/** | ||
* @Then /^I should not have the "([^"]*)" cookie$/ | ||
*/ | ||
public function iShouldNotHaveTheCookie($cookieName) | ||
{ | ||
if ($this->getSession()->getCookie($cookieName)) { | ||
throw new ExpectationException( | ||
'The cookie with name ' . $cookieName . ' was not found, but it should not be present.', | ||
$this->getSession() | ||
); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Feature: Xdebug | ||
In order to properly develop with BDD | ||
As a feature developer | ||
I need to be able to use my debugger | ||
|
||
Scenario: Xdebug cookie should not be present on normal requests | ||
Given I am on "/wiki/Main_Page" | ||
Then I should not have the "XDEBUG_SESSION" cookie | ||
|
||
@MockXdebug | ||
Scenario: Xdebug cookie should be passed on to requests | ||
Given I am on "/wiki/Main_Page" | ||
Then I should have the "XDEBUG_SESSION" cookie with value "xdebug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the min version in composer.json is still 5.3, this is invalid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the composer.json now. Thanks, let me know if it is not the correct way.