<commit_before><?php namespace Exolnet\Test\TestCase\Integration;

use App;
use Exolnet\Test\TestCaseIntegration;
use Symfony\Component\HttpKernel\Exception\HttpException;

class QualityTest extends TestCaseIntegration
{
	/**
	 * @var bool
	 */
	protected $hasFavicon;

	public function testCharset()
	{
		$this->visit('/')->seeSelector('meta[charset]');
	}

	public function testXUACompatible()
	{
		$this->visit('/')->seeSelector('meta[http-equiv="X-UA-Compatible"]');
	}

	public function testViewportIsDefined()
	{
		$this->visit('/')->seeSelector('meta[name="viewport"]');
	}

	public function testError404()
	{
		$this->get('404');

		$this->assertResponseStatus(404);
		$this->assertNotContains('exception_title', $this->response->getContent());
	}

	public function testError403()
	{
		\Route::get('403', function() {
			App::abort(403);
		});

		$this->get('403');

		$this->assertResponseStatus(403);
		$this->assertNotContains('exception_title', $this->response->getContent());
	}

	public function testError500()
	{
		\Route::get('500', function() {
			throw new HttpException(500);<commit_msg>Remove the testXUACompabile test in QualityTest: the X-UA-Compatible should be defined in the .htaccess<commit_after><?php namespace Exolnet\Test\TestCase\Integration;

use App;
use Exolnet\Test\TestCaseIntegration;
use Symfony\Component\HttpKernel\Exception\HttpException;

class QualityTest extends TestCaseIntegration
{
	/**
	 * @var bool
	 */
	protected $hasFavicon;

	public function testCharset()
	{
		$this->visit('/')->seeSelector('meta[charset]');
	}

	public function testViewportIsDefined()
	{
		$this->visit('/')->seeSelector('meta[name="viewport"]');
	}

	public function testError404()
	{
		$this->get('404');

		$this->assertResponseStatus(404);
		$this->assertNotContains('exception_title', $this->response->getContent());
	}

	public function testError403()
	{
		\Route::get('403', function() {
			App::abort(403);
		});

		$this->get('403');

		$this->assertResponseStatus(403);
		$this->assertNotContains('exception_title', $this->response->getContent());
	}

	public function testError500()
	{
		\Route::get('500', function() {
			throw new HttpException(500);
{'fraction_non_alphanumeric': 0.17429094236047576, 'fraction_numerical': 0.03019213174748399, 'mean_word_length': 5.451327433628318, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '7585255', 'n_tokens_mistral': 796, 'n_tokens_neox': 705, 'n_words': 116}