<commit_before><?php
namespace Veles\Tests\DataBase\Adapters;

use Veles\DataBase\Adapters\PdoAdapter;
use Veles\DataBase\Db;

/**
 * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-12-10 at 15:41:03.
 * @group database
 */
class PdoAdapterTest extends \PHPUnit_Framework_TestCase
{
	/**
	 * @var PdoAdapter
	 */
	protected $object;

	protected static $tbl_name;

	public static function setUpBeforeClass()
	{
		// Создаём тестовую таблицу в базе
		$tbl_name = static::$tbl_name = 'veles_unit_test' . mt_rand(1000, 9999);

		Db::query("
			CREATE TABLE IF NOT EXISTS $tbl_name (
				id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
				txt CHAR(50) NOT NULL DEFAULT ''<commit_msg>Fix minor code inspection flaws<commit_after><?php
namespace Veles\Tests\DataBase\Adapters;

use Veles\DataBase\Adapters\PdoAdapter;
use Veles\DataBase\Db;

/**
 * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-12-10 at 15:41:03.
 * @group database
 */
class PdoAdapterTest extends \PHPUnit_Framework_TestCase
{
	/**
	 * @var PdoAdapter
	 */
	protected $object;

	protected static $tbl_name;

	public static function setUpBeforeClass()
	{
		// Создаём тестовую таблицу в базе
		static::$tbl_name = 'veles_unit_test' . mt_rand(1000, 9999);
		$tbl_name = static::$tbl_name;

		Db::query("
			CREATE TABLE IF NOT EXISTS $tbl_name (
				id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
				txt CHAR(50) NOT NULL DEFAULT ''
{'fraction_non_alphanumeric': 0.1058574453069866, 'fraction_numerical': 0.038108680310515175, 'mean_word_length': 4.2518518518518515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '120836', 'n_tokens_mistral': 575, 'n_tokens_neox': 503, 'n_words': 129}