App\Test\TestCase\Controller\PagesControllerTest::testDirectoryTraversalProtection PHP Метод

testDirectoryTraversalProtection() публичный Метод

Test directory traversal protection
public testDirectoryTraversalProtection ( ) : void
Результат void
    public function testDirectoryTraversalProtection()
    {
        $this->get('/pages/../Layout/ajax');
        $this->assertResponseCode(403);
        $this->assertResponseContains('Forbidden');
    }