<commit_before><?php

namespace Identicon\Tests;

class BasicTypeIdenticonTest extends AbstractTypeIdenticonTest
{
    public function testLoadingIndexPage()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.png");
        $response = $client->getResponse();

        $this->assertTrue($response->isSuccessful());
        $this->assertImageIsCorrect($response, "identity.png");
    }

    public function testCachedBasicIdenticonPage()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.png");
        $response = $client->getResponse();
        $this->assertTrue($response->isCacheable());
        $this->assertEquals(3600, $response->getMaxAge());
        $this->assertTrue($response->isValidateable());
        //$requestA = $client->getRequest();
        //$this->assertFalse($response->isNotModified($requestA));
    }

    public function testIncorrectFormat()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.jpg");
        $response = $client->getResponse();

        $this->assertTrue($response->isClientError());
    }
}<commit_msg>Image extension must be case insensitive.<commit_after><?php

namespace Identicon\Tests;

class BasicTypeIdenticonTest extends AbstractTypeIdenticonTest
{
    public function testLoadingIndexPage()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.png");
        $response = $client->getResponse();

        $this->assertTrue($response->isSuccessful());
        $this->assertImageIsCorrect($response, "identity.png");
    }

    public function testCachedBasicIdenticonPage()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.png");
        $response = $client->getResponse();
        $this->assertTrue($response->isCacheable());
        $this->assertEquals(3600, $response->getMaxAge());
        $this->assertTrue($response->isValidateable());
        //$requestA = $client->getRequest();
        //$this->assertFalse($response->isNotModified($requestA));
    }

    public function testIncorrectFormat()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.jpg");
        $response = $client->getResponse();

        $this->assertTrue($response->isClientError());
    }

    public function testNonLowercaseFormat()
    {
        $client = $this->createClient();
        $client->request("GET", "/identity.PNG");
        $response = $client->getResponse();

        $this->assertTrue($response->isSuccessful());
    }
}
{'fraction_non_alphanumeric': 0.17038461538461538, 'fraction_numerical': 0.003076923076923077, 'mean_word_length': 3.20873786407767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6884565', 'n_tokens_mistral': 707, 'n_tokens_neox': 699, 'n_words': 105}