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