TestComponent1   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 15
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A preActions() 0 3 1
A assertTitle() 0 3 1
A preAssertions() 0 3 1
1
<?php
2
3
namespace Zenstruck\Browser\Tests\Fixture;
4
5
use Zenstruck\Browser\Component;
6
7
/**
8
 * @author Kevin Bond <[email protected]>
9
 */
10
final class TestComponent1 extends Component
11
{
12
    public function assertTitle(string $expected): void
13
    {
14
        $this->browser()->assertSeeIn('h1', $expected);
15
    }
16
17
    protected function preActions(): void
18
    {
19
        $this->browser()->visit('/page1');
20
    }
21
22
    protected function preAssertions(): void
23
    {
24
        $this->browser()->assertOn('/page1');
25
    }
26
}
27