• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 14049246919

24 Mar 2025 09:42PM UTC coverage: 79.353% (-0.04%) from 79.391%
14049246919

push

github

web-flow
feat(support): support array parameters in string manipulations (#1073)

48 of 48 new or added lines in 2 files covered. (100.0%)

735 existing lines in 126 files now uncovered.

10492 of 13222 relevant lines covered (79.35%)

90.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Tempest/Console/src/Testing/TestCursor.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Testing;
6

7
use Tempest\Console\Cursor;
8
use Tempest\Console\Point;
9

10
final class TestCursor implements Cursor
11
{
12
    public function __construct(
×
13
        private int $x = 1,
14
        private int $y = 1,
UNCOV
15
    ) {}
×
16

UNCOV
17
    public function getPosition(): Point
×
18
    {
UNCOV
19
        return new Point($this->x, $this->y);
×
20
    }
21

UNCOV
22
    public function setPosition(Point $position): self
×
23
    {
UNCOV
24
        $this->x = $position->x;
×
25
        $this->y = $position->y;
×
26

UNCOV
27
        return $this;
×
28
    }
29

UNCOV
30
    public function moveUp(int $amount = 1): Cursor
×
31
    {
UNCOV
32
        $this->y = max(1, $this->y - 1);
×
33

UNCOV
34
        return $this;
×
35
    }
36

UNCOV
37
    public function moveDown(int $amount = 1): Cursor
×
38
    {
UNCOV
39
        $this->y += 1;
×
40

UNCOV
41
        return $this;
×
42
    }
43

UNCOV
44
    public function moveLeft(int $amount = 1): Cursor
×
45
    {
UNCOV
46
        $this->x = max(1, $this->x - 1);
×
47

UNCOV
48
        return $this;
×
49
    }
50

UNCOV
51
    public function moveRight(int $amount = 1): Cursor
×
52
    {
UNCOV
53
        $this->x += 1;
×
54

UNCOV
55
        return $this;
×
56
    }
57

UNCOV
58
    public function place(Point $position): Cursor
×
59
    {
UNCOV
60
        $this->x = max(1, $position->x);
×
61
        $this->y = max(1, $position->y);
×
62

UNCOV
63
        return $this;
×
64
    }
65

UNCOV
66
    public function placeToEnd(): Cursor
×
67
    {
UNCOV
68
        return $this;
×
69
    }
70

UNCOV
71
    public function clearLine(): Cursor
×
72
    {
UNCOV
73
        return $this;
×
74
    }
75

UNCOV
76
    public function clearAfter(): Cursor
×
77
    {
UNCOV
78
        return $this;
×
79
    }
80

UNCOV
81
    public function startOfLine(): Cursor
×
82
    {
UNCOV
83
        return $this;
×
84
    }
85

UNCOV
86
    public function hide(): Cursor
×
87
    {
UNCOV
88
        return $this;
×
89
    }
90

UNCOV
91
    public function show(): Cursor
×
92
    {
UNCOV
93
        return $this;
×
94
    }
95
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc