<commit_before><?php


	namespace Application\Tests\Unit\Module;

	use Application\Module\Application;
	use Application\Tests\Helpers\TestCase;


	class ApplicationTest extends TestCase
	{


		public function testInitializeModule ()
		{
			$this->getModule();
		}
		
		
		public function testExecute ()
		{
			$module = $this->getModule();
			$response = $module->execute('/');
			
			$this->assertEquals(
				(string) $response,
				file_get_contents(dirname(dirname(dirname(__DIR__))) . '/views/index.php')
			);
		}


		protected function getModule ()
		{
			return new Application($this->container);
		}
	}<commit_msg>Added hooks and templated responses<commit_after><?php


	namespace Application\Tests\Unit\Module;

	use Application\Module\Application;
	use Application\Tests\Helpers\TestCase;


	class ApplicationTest extends TestCase
	{


		public function testInitializeModule ()
		{
			$this->getModule();
		}
		
		
		public function testExecute ()
		{
			$module = $this->getModule();
			$response = $module->execute('/');
			
			$this->assertContains(
				'<h1>Welcome to LiftKit</h1>',
				(string) $response
			);
			
			$this->assertContains(
				'<title>Welcome to LiftKit</title>',
				(string) $response
			);
		}
		
		
		public function test403 ()
		{
			$module = $this->getModule();
			$response = $module->execute('/trigger-403');
			
			$this->assertContains(
				'<h1>403: Forbidden</h1>',
				(string) $response
			);
			
			$this->assertContains(
				'<title>403: Forbidden</title>',
				(string) $response
			);
		}


		protected function getModule ()
		{
			return new Application($this->container);
		}
	}
{'fraction_non_alphanumeric': 0.14687882496940025, 'fraction_numerical': 0.009791921664626682, 'mean_word_length': 3.268929503916449, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 26, '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': '3296495', 'n_tokens_mistral': 642, 'n_tokens_neox': 508, 'n_words': 94}