We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 23 | public function test_href(): void { |
||
| 24 | // Create an arbitrary Page |
||
| 25 | $page = new Page(); |
||
| 26 | |||
| 27 | // Pre-initialize the Smr\Session, since it uses 'rand', and we don't |
||
| 28 | // want it to interfere with our rand seed when we call `href`, which |
||
| 29 | // internally requires an Smr\Session. |
||
| 30 | Session::getInstance(); |
||
| 31 | |||
| 32 | // The Page should not be modified when href() is called |
||
| 33 | $expected = clone $page; |
||
| 34 | srand(0); // for a deterministic SN |
||
| 35 | $href = $page->href(); |
||
| 36 | self::assertSame(LOADER_URI . '?sn=qpbqzr', $href); |
||
| 37 | self::assertEquals($expected, $page); |
||
| 38 | } |
||
| 41 |