<commit_before><?php

/**
 * @copyright <NAME>
 * @license   http://www.makoframework.com/license
 */

namespace mako\tests\unit\http\routing;

use Closure;
use mako\http\exceptions\MethodNotAllowedException;
use mako\http\exceptions\NotFoundException;
use mako\http\Request;
use mako\http\request\Parameters;
use mako\http\Response;
use mako\http\response\Headers;
use mako\http\response\senders\Redirect;
use mako\http\routing\attributes\Constraint;
use mako\http\routing\constraints\ConstraintInterface;
use mako\http\routing\exceptions\RoutingException;
use mako\http\routing\Route;
use mako\http\routing\Router;
use mako\http\routing\Routes;
use mako\syringe\Container;
use mako\tests\TestCase;
use Mockery;

// --------------------------------------------------------------------------
// START CLASSES
// --------------------------------------------------------------------------

class FooConstraint implements ConstraintInterface
{
	public function isSatisfied(): bool
	{
		return false;
	}
}

class BarConstraint implements ConstraintInterface
{
	public function isSatisfied(): bool
	{
		return true;
	}
}

#[Constraint('foo')]
class RouterAttributeController
{
	public function helloWorld(): void
	{

	}
}

// --------------------------------------------------------------------------
// END CLASSES
// --------------------------------------------------------------------------

/**
 * @group unit
 */
class RouterTest extends TestCase
{<commit_msg>Cleaning up<commit_after><?php

/**
 * @copyright <NAME>
 * @license   http://www.makoframework.com/license
 */

namespace mako\tests\unit\http\routing;

use Closure;
use mako\http\exceptions\MethodNotAllowedException;
use mako\http\exceptions\NotFoundException;
use mako\http\Request;
use mako\http\request\Parameters;
use mako\http\Response;
use mako\http\response\Headers;
use mako\http\response\senders\Redirect;
use mako\http\routing\constraints\ConstraintInterface;
use mako\http\routing\exceptions\RoutingException;
use mako\http\routing\Route;
use mako\http\routing\Router;
use mako\http\routing\Routes;
use mako\syringe\Container;
use mako\tests\TestCase;
use Mockery;

// --------------------------------------------------------------------------
// START CLASSES
// --------------------------------------------------------------------------

class FooConstraint implements ConstraintInterface
{
	public function isSatisfied(): bool
	{
		return false;
	}
}

class BarConstraint implements ConstraintInterface
{
	public function isSatisfied(): bool
	{
		return true;
	}
}

// --------------------------------------------------------------------------
// END CLASSES
// --------------------------------------------------------------------------

/**
 * @group unit
 */
class RouterTest extends TestCase
{
{'fraction_non_alphanumeric': 0.306998556998557, 'fraction_numerical': 0.0, 'mean_word_length': 1.8123732251521298, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '808111', 'n_tokens_mistral': 746, 'n_tokens_neox': 741, 'n_words': 148}