You can get the current URL with $client->getResponse()->headers->get('location')
, and assert it ends with /login using assertRegExp()
.
$this->assertRegExp('//login$/', $client->getResponse()->headers->get('location'));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…