PageContext   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A iAmOnThePageWith() 0 4 1
A iShouldBeOnThePageWith() 0 4 1
1
<?php
2
3
namespace Knp\FriendlyContexts\Context;
4
5
use Behat\Gherkin\Node\TableNode;
6
7
class PageContext extends RawPageContext
8
{
9
    /**
10
     * @Given /^I am on the (.*) page$/
11
     * @Given /^I am on the (.*) page with:?$/
12
     * @When /^I go to the (.*) page$/
13
     * @When /^I go to the (.*) page with:?$/
14
     */
15
    public function iAmOnThePageWith($page, TableNode $table = null)
16
    {
17
        $this->visitPage($page, $table);
18
    }
19
20
    /**
21
     * @Then /^I should be on the (.*) page$/
22
     * @Then /^I should be on the (.*) page with:?$/
23
     */
24
    public function iShouldBeOnThePageWith($page, TableNode $table = null)
25
    {
26
        $this->assertPage($page, $table);
27
    }
28
}
29