' '); } public function testWithoutASiteUrlPlainHttpIsRefused(): void { $answer = $this->get('/publish/login', array('X-Test-Plain' => '1')); $this->assertSame(403, $answer['status']); $this->assertNull($this->header($answer, 'Location')); $this->assertSame("This page needs HTTPS.\n", $answer['body']); } public function testWithoutASiteUrlHttpsStillWorks(): void { $this->assertSame(200, $this->get('/publish/login')['status']); } }