| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function testGetNull() |
||
| 43 | { |
||
| 44 | $this->session->get('sso_state') |
||
| 45 | ->willReturn(null); |
||
| 46 | |||
| 47 | $this->session->set('sso_state', Argument::type('string')) |
||
| 48 | ->shouldBeCalled(); |
||
| 49 | |||
| 50 | $this->session->getId()->willReturn('foo'); |
||
| 51 | |||
| 52 | self::assertInstanceOf(SsoState::class, $state = $this->store->get()); |
||
| 53 | self::assertSame('foo', $state->getLocalSessionId()); |
||
| 54 | } |
||
| 56 |