File: DataSearchTest.php

package info (click to toggle)
mariadb-mysql-kbs 1.2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,640 kB
  • sloc: php: 547; xml: 22; makefile: 8; sh: 4
file content (28 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
declare(strict_types = 1);
namespace Williamdes\MariaDBMySQLKBS\Test;

use \PHPUnit\Framework\TestCase;
use \Williamdes\MariaDBMySQLKBS\Search;

class DataSearchTest extends TestCase
{

    /**
     * test the real data
     *
     * @return void
     */
    public function testRealData(): void
    {
        // Autopkg tests, data dir was patched by debian
        if (! is_dir(Search::$DATA_DIR)) {
            // Set back to dist folder
            Search::$DATA_DIR = __DIR__ . Search::DS . ".." . Search::DS . ".." . Search::DS . "dist" . Search::DS;
        }
        $found = Search::getByName("character_set_client", Search::MYSQL);
        $this->assertStringContainsString("https://dev.mysql.com/doc/refman/", $found);
        $this->assertStringContainsString("/en/server-system-variables.html#sysvar_character_set_client", $found);
    }

}