We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 85-92 (lines=8) @@ | ||
82 | $this->assertEquals($expected, $actual); |
|
83 | } |
|
84 | ||
85 | public function testRespectsFirstAndAfterWithLongFirst() |
|
86 | { |
|
87 | $actual = ConnectionBuilder::connectionFromArray( |
|
88 | $this->letters, |
|
89 | ['first' => 10, 'after' => 'YXJyYXljb25uZWN0aW9uOjE='] |
|
90 | ); |
|
91 | ||
92 | $expected = $this->getExpectedConnection(['C', 'D', 'E'], false, false); |
|
93 | ||
94 | $this->assertEquals($expected, $actual); |
|
95 | } |
|
@@ 109-116 (lines=8) @@ | ||
106 | $this->assertEquals($expected, $actual); |
|
107 | } |
|
108 | ||
109 | public function testRespectsLastAndBeforeWithLongLast() |
|
110 | { |
|
111 | $actual = ConnectionBuilder::connectionFromArray( |
|
112 | $this->letters, |
|
113 | ['last' => 10, 'before' => 'YXJyYXljb25uZWN0aW9uOjM='] |
|
114 | ); |
|
115 | ||
116 | $expected = $this->getExpectedConnection(['A', 'B', 'C'], false, false); |
|
117 | ||
118 | $this->assertEquals($expected, $actual); |
|
119 | } |
|
@@ 121-131 (lines=11) @@ | ||
118 | $this->assertEquals($expected, $actual); |
|
119 | } |
|
120 | ||
121 | public function testRespectsFirstAndAfterAndBeforeTooFew() |
|
122 | { |
|
123 | $actual = ConnectionBuilder::connectionFromArray( |
|
124 | $this->letters, |
|
125 | ['first' => 2, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ='] |
|
126 | ); |
|
127 | ||
128 | $expected = $this->getExpectedConnection(['B', 'C'], false, true); |
|
129 | ||
130 | $this->assertEquals($expected, $actual); |
|
131 | } |
|
132 | ||
133 | public function testRespectsFirstAndAfterAndBeforeTooMany() |
|
134 | { |
|
@@ 133-143 (lines=11) @@ | ||
130 | $this->assertEquals($expected, $actual); |
|
131 | } |
|
132 | ||
133 | public function testRespectsFirstAndAfterAndBeforeTooMany() |
|
134 | { |
|
135 | $actual = ConnectionBuilder::connectionFromArray( |
|
136 | $this->letters, |
|
137 | ['first' => 4, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ='] |
|
138 | ); |
|
139 | ||
140 | $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false); |
|
141 | ||
142 | $this->assertEquals($expected, $actual); |
|
143 | } |
|
144 | ||
145 | public function testRespectsFirstAndAfterAndBeforeExactlyRight() |
|
146 | { |
|
@@ 145-155 (lines=11) @@ | ||
142 | $this->assertEquals($expected, $actual); |
|
143 | } |
|
144 | ||
145 | public function testRespectsFirstAndAfterAndBeforeExactlyRight() |
|
146 | { |
|
147 | $actual = ConnectionBuilder::connectionFromArray( |
|
148 | $this->letters, |
|
149 | ['first' => 3, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ='] |
|
150 | ); |
|
151 | ||
152 | $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false); |
|
153 | ||
154 | $this->assertEquals($expected, $actual); |
|
155 | } |
|
156 | ||
157 | public function testRespectsLastAndAfterAndBeforeTooFew() |
|
158 | { |
|
@@ 157-167 (lines=11) @@ | ||
154 | $this->assertEquals($expected, $actual); |
|
155 | } |
|
156 | ||
157 | public function testRespectsLastAndAfterAndBeforeTooFew() |
|
158 | { |
|
159 | $actual = ConnectionBuilder::connectionFromArray( |
|
160 | $this->letters, |
|
161 | ['last' => 2, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ='] |
|
162 | ); |
|
163 | ||
164 | $expected = $this->getExpectedConnection(['C', 'D'], true, false); |
|
165 | ||
166 | $this->assertEquals($expected, $actual); |
|
167 | } |
|
168 | ||
169 | public function testRespectsLastAndAfterAndBeforeTooMany() |
|
170 | { |
|
@@ 169-179 (lines=11) @@ | ||
166 | $this->assertEquals($expected, $actual); |
|
167 | } |
|
168 | ||
169 | public function testRespectsLastAndAfterAndBeforeTooMany() |
|
170 | { |
|
171 | $actual = ConnectionBuilder::connectionFromArray( |
|
172 | $this->letters, |
|
173 | ['last' => 4, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ='] |
|
174 | ); |
|
175 | ||
176 | $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false); |
|
177 | ||
178 | $this->assertEquals($expected, $actual); |
|
179 | } |
|
180 | ||
181 | public function testRespectsLastAndAfterAndBeforeExactlyRight() |
|
182 | { |
|
@@ 181-191 (lines=11) @@ | ||
178 | $this->assertEquals($expected, $actual); |
|
179 | } |
|
180 | ||
181 | public function testRespectsLastAndAfterAndBeforeExactlyRight() |
|
182 | { |
|
183 | $actual = ConnectionBuilder::connectionFromArray( |
|
184 | $this->letters, |
|
185 | ['last' => 3, 'after' => 'YXJyYXljb25uZWN0aW9uOjA=', 'before' => 'YXJyYXljb25uZWN0aW9uOjQ='] |
|
186 | ); |
|
187 | ||
188 | $expected = $this->getExpectedConnection(['B', 'C', 'D'], false, false); |
|
189 | ||
190 | $this->assertEquals($expected, $actual); |
|
191 | } |
|
192 | ||
193 | /** |
|
194 | * @expectedException \InvalidArgumentException |