blob: 134accf103e3c19c4a9e2522a603ac1ac467510c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Feature: Evaluating expressions
In order to evaluate variables in Vdebug
As a user
I want to see the evaluated variable in the watch window
Scenario: Evaluating a PHP expression
Given I have a file example.php containing
"""
<?php
$var1 = 1;
?>
"""
And I start the debugger with the PHP script example.php
When I evaluate "$var1"
Then the watch window should show Eval of: '$var1'
Scenario: Evaluating a PHP expression with VdebugEval!
Given I have a file example.php containing
"""
<?php
$var1 = 1;
?>
"""
And I start the debugger with the PHP script example.php
When I evaluate "$var1" with VdebugEval!
Then the watch window should show Eval of: '$var1'
When I step over
Then the watch window should show Eval of: '$var1'
Scenario: Evaluating a PHP expression and resetting
Given I have a file example.php containing
"""
<?php
$var1 = 1;
?>
"""
And I start the debugger with the PHP script example.php
When I evaluate "$var1" with VdebugEval!
Then the watch window should show Eval of: '$var1'
When I run VdebugEval without any arguments
Then the watch window should show Locals
|