<commit_before><?php

class UtilContentTypeTest extends PHPUnit_Framework_TestCase
{
  /**
   * @runInSeparateProcess
   */
  public function testAsPdf()
  {
    Pimf\Util\Header\ContentType::asPDF();

    $this->assertContains('Content-Type: application/pdf', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsCSV()
  {
    Pimf\Util\Header\ContentType::asCSV();

    $this->assertContains('text/csv', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsTextPlain()
  {
    Pimf\Util\Header\ContentType::asTextPlain();

    $this->assertContains('text/plain', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsTextHTML()
  {
    Pimf\Util\Header\ContentType::asTextHTML();

    $this->assertContains('text/html', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsZip()
  {
    Pimf\Util\Header\ContentType::asZIP();

    $this->assertContains('Content-Type: application/zip', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsXZip()
  {
    Pimf\Util\Header\ContentType::asXZIP();

    $this->assertContains('Content-Type: application/x-zip', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsMsWord()
  {
    Pimf\Util\Header\ContentType::asMSWord();

    $this->assertContains('Content-Type: application/msword', xdebug_get_headers());
  }


  /**
   * @runInSeparateProcess
   */
  public function testAsOctetSream()
  {
    Pimf\Util\Header\ContentType::asOctetStream();

    $this->assertContains('Content-Type: application/octet-stream', xdebug_get_headers());
  }

  /**
    * @runInSeparateProcess
    */
   public function testAsJson()
   {
     Pimf\Util\Header\ContentType::asJSON();

     $this->assertContains('Content-Type: application/json; charset=utf-8', xdebug_get_headers());
   }
}
 <commit_msg>fix asserting that an array contains specific Content-Type<commit_after><?php

class UtilContentTypeTest extends PHPUnit_Framework_TestCase
{
  /**
   * @runInSeparateProcess
   */
  public function testAsPdf()
  {
    Pimf\Util\Header\ContentType::asPDF();

    $this->assertContains('Content-Type: application/pdf', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsZip()
  {
    Pimf\Util\Header\ContentType::asZIP();

    $this->assertContains('Content-Type: application/zip', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsXZip()
  {
    Pimf\Util\Header\ContentType::asXZIP();

    $this->assertContains('Content-Type: application/x-zip', xdebug_get_headers());
  }

  /**
   * @runInSeparateProcess
   */
  public function testAsMsWord()
  {
    Pimf\Util\Header\ContentType::asMSWord();

    $this->assertContains('Content-Type: application/msword', xdebug_get_headers());
  }


  /**
   * @runInSeparateProcess
   */
  public function testAsOctetSream()
  {
    Pimf\Util\Header\ContentType::asOctetStream();

    $this->assertContains('Content-Type: application/octet-stream', xdebug_get_headers());
  }

  /**
    * @runInSeparateProcess
    */
   public function testAsJson()
   {
     Pimf\Util\Header\ContentType::asJSON();

     $this->assertContains('Content-Type: application/json; charset=utf-8', xdebug_get_headers());
   }
}
 
{'fraction_non_alphanumeric': 0.15157770569153642, 'fraction_numerical': 0.0005897965202005308, 'mean_word_length': 3.7242339832869082, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '5268715', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1131, 'n_words': 136}