<commit_before><?php
namespace TYPO3\Flow\Tests\Unit\Property\TypeConverter;

/*                                                                        *
 * This script belongs to the TYPO3 Flow framework.                       *
 *                                                                        *
 * It is free software; you can redistribute it and/or modify it under    *
 * the terms of the GNU Lesser General Public License, either version 3   *
 * of the License, or (at your option) any later version.                 *
 *                                                                        *
 * The TYPO3 project - inspiring people to share!                         *
 *                                                                        */

use \TYPO3\Flow\Http\Uri;

/**
 * Testcase for the URI type converter
 *
 */
class UriTypeConverterTest extends \TYPO3\Flow\Tests\UnitTestCase {

	/**
	 * @var \TYPO3\Flow\Property\TypeConverter\UriTypeConverter
	 */
	protected $typeConverter;

	/**
	 */
	protected function setUp() {
		parent::setUp();
		$this->typeConverter = new \TYPO3\Flow\Property\TypeConverter\UriTypeConverter();
	}

	/**
	 * @test
	 */
	public function sourceTypeIsStringOnly() {
		$sourceTypes = $this->typeConverter->getSupportedSourceTypes();
		$this->assertCount(1, $sourceTypes);<commit_msg>[TASK] Remove leading backslash in use statement(s)<commit_after><?php
namespace TYPO3\Flow\Tests\Unit\Property\TypeConverter;

/*                                                                        *
 * This script belongs to the TYPO3 Flow framework.                       *
 *                                                                        *
 * It is free software; you can redistribute it and/or modify it under    *
 * the terms of the GNU Lesser General Public License, either version 3   *
 * of the License, or (at your option) any later version.                 *
 *                                                                        *
 * The TYPO3 project - inspiring people to share!                         *
 *                                                                        */

use TYPO3\Flow\Http\Uri;

/**
 * Testcase for the URI type converter
 *
 */
class UriTypeConverterTest extends \TYPO3\Flow\Tests\UnitTestCase {

	/**
	 * @var \TYPO3\Flow\Property\TypeConverter\UriTypeConverter
	 */
	protected $typeConverter;

	/**
	 */
	protected function setUp() {
		parent::setUp();
		$this->typeConverter = new \TYPO3\Flow\Property\TypeConverter\UriTypeConverter();
	}

	/**
	 * @test
	 */
	public function sourceTypeIsStringOnly() {
		$sourceTypes = $this->typeConverter->getSupportedSourceTypes();
		$this->assertCount(1, $sourceTypes);
{'fraction_non_alphanumeric': 0.09413067552602436, 'fraction_numerical': 0.006644518272425249, 'mean_word_length': 1.4370503597122302, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2405346', 'n_tokens_mistral': 660, 'n_tokens_neox': 623, 'n_words': 171}