go('https://test-pages.phpscraper.de/meta/missing.html'); // Check the csrfToken as not given (null) $this->assertNull($web->csrfToken); } /** * @test */ public function testWithCsrfToken() { $web = new \Spekulatius\PHPScraper\PHPScraper; // Navigate to the test page. // Contains: $web->go('https://test-pages.phpscraper.de/meta/lorem-ipsum.html'); // Check the csrfToken $this->assertSame( 'token', $web->csrfToken ); } }