We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 28-35 (lines=8) @@ | ||
| 25 | { |
|
| 26 | private $letters = ['A', 'B', 'C', 'D', 'E']; |
|
| 27 | ||
| 28 | public function testBasicSlicing() |
|
| 29 | { |
|
| 30 | $actual = ConnectionBuilder::connectionFromArray($this->letters); |
|
| 31 | ||
| 32 | $expected = $this->getExpectedConnection($this->letters, false, false); |
|
| 33 | ||
| 34 | $this->assertEquals($expected, $actual); |
|
| 35 | } |
|
| 36 | ||
| 37 | public function testRespectsASmallerFirst() |
|
| 38 | { |
|
| @@ 46-53 (lines=8) @@ | ||
| 43 | $this->assertEquals($expected, $actual); |
|
| 44 | } |
|
| 45 | ||
| 46 | public function testRespectsAnOverlyLargeFirst() |
|
| 47 | { |
|
| 48 | $actual = ConnectionBuilder::connectionFromArray($this->letters, ['first' => 10]); |
|
| 49 | ||
| 50 | $expected = $this->getExpectedConnection($this->letters, false, false); |
|
| 51 | ||
| 52 | $this->assertEquals($expected, $actual); |
|
| 53 | } |
|
| 54 | ||
| 55 | public function testRespectsASmallerLast() |
|
| 56 | { |
|
| @@ 64-71 (lines=8) @@ | ||
| 61 | $this->assertEquals($expected, $actual); |
|
| 62 | } |
|
| 63 | ||
| 64 | public function testRespectsAnOverlyLargeLast() |
|
| 65 | { |
|
| 66 | $actual = ConnectionBuilder::connectionFromArray($this->letters, ['last' => 10]); |
|
| 67 | ||
| 68 | $expected = $this->getExpectedConnection($this->letters, false, false); |
|
| 69 | ||
| 70 | $this->assertEquals($expected, $actual); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testRespectsFirstAndAfter() |
|
| 74 | { |
|