<commit_before><?php
/**
 * This file is part of the Kappa\Doctrine package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the license.md
 * file that was distributed with this source code.
 *
 * @testCase
 */

namespace KappaTests\Doctrine\DI;

use Nette\DI\Container;
use Tester\Assert;
use Tester\TestCase;

require_once __DIR__ . '/../../bootstrap.php';

/**
 * Class DoctrineExtensionTest
 *
 * @package Kappa\Doctrine\Tests
 * @author <NAME> <http://zaruba-ondrej.cz>
 */
class DoctrineExtensionTest extends TestCase
{
	private $container;

	public function __construct(Container $container)
	{
		$this->container = $container;
	}

	public function testConverter()
	{
		$type = 'Kappa\Doctrine\Converters\Converter';
		Assert::type($type, $this->container->getByType($type));
	}

	public function testForms()
	{
		$type = 'Kappa\Doctrine\Forms\FormItemsCreator';
		Assert::type($type, $this->container->getByType($type));
	}

	public function testCrudManagerFactory()
	{
		$type = 'Kappa\Doctrine\Managers\CrudManagerFactory';
		Assert::type($type, $this->container->getByType($type));
	}
}

\run(new DoctrineExtensionTest(getContainer()));<commit_msg>Added test for QueryExecutor in DIC<commit_after><?php
/**
 * This file is part of the Kappa\Doctrine package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the license.md
 * file that was distributed with this source code.
 *
 * @testCase
 */

namespace KappaTests\Doctrine\DI;

use Nette\DI\Container;
use Tester\Assert;
use Tester\TestCase;

require_once __DIR__ . '/../../bootstrap.php';

/**
 * Class DoctrineExtensionTest
 *
 * @package Kappa\Doctrine\Tests
 * @author <NAME> <http://zaruba-ondrej.cz>
 */
class DoctrineExtensionTest extends TestCase
{
	private $container;

	public function __construct(Container $container)
	{
		$this->container = $container;
	}

	public function testConverter()
	{
		$type = 'Kappa\Doctrine\Converters\Converter';
		Assert::type($type, $this->container->getByType($type));
	}

	public function testForms()
	{
		$type = 'Kappa\Doctrine\Forms\FormItemsCreator';
		Assert::type($type, $this->container->getByType($type));
	}

	public function testCrudManagerFactory()
	{
		$type = 'Kappa\Doctrine\Managers\CrudManagerFactory';
		Assert::type($type, $this->container->getByType($type));
	}

	public function testQueryExecutor()
	{
		$type = 'Kappa\Doctrine\Queries\QueryExecutor';
		Assert::type($type, $this->container->getByType($type));
	}
}

\run(new DoctrineExtensionTest(getContainer()));
{'fraction_non_alphanumeric': 0.14970986460348162, 'fraction_numerical': 0.0, 'mean_word_length': 4.733924611973393, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 29, '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': '531363', 'n_tokens_mistral': 864, 'n_tokens_neox': 838, 'n_words': 181}