public/phpmyadmin/test/classes/Server/Status/VariablesTest.php
/**
     * Test for Variables::getHtmlForVariablesList
     *
     * @return void
     * @group medium
     */
Test for Variables::getHtmlForVariablesList
@return void
@group medium
Test for Variables :: getHtmlForVariablesList @return void @group medium
public function testPMAGetHtmlForVariablesList()
    {
        $html = Variables::getHtmlForVariablesList($this->serverStatusData);
        $table = '<table class="data noclick" '
            . 'id="serverstatusvariables">';
        $this->assertContains(
            $table,
            $html
        );
        $this->assertContains(
            '<th>Variable</th>',
            $html
        );
        $this->assertContains(
            '<th>Value</th>',
            $html
        );
        $this->assertContains(
            '<th>Description</th>',
            $html
        );
        $this->assertContains(
            '<th class="name">Aborted clients',
            $html
        );
        $this->assertContains(
            '<span class="allfine">0</span>',
            $html
        );
        $this->assertContains(
            '<th class="name">Aborted connects',
            $html
        );
        $this->assertContains(
            '<th class="name">Com delete multi',
            $html
        );
        $this->assertContains(
            '<th class="name">Com create function',
            $html
        );
        $this->assertContains(
            '<th class="name">Com empty query',
            $html
        );
    }
public function testPMAGetHtmlForVariablesList ( ) { $ html = Variables :: getHtmlForVariablesList ( $ this -> serverStatusData ) ; $ table = '<table class="data noclick" ' . 'id="serverstatusvariables">' ; $ this -> assertContains ( $ table , $ html ) ; $ this -> assertContains ( '<th>Variable</th>' , $ html ) ; $ this -> assertContains ( '<th>Value</th>' , $ html ) ; $ this -> assertContains ( '<th>Description</th>' , $ html ) ; $ this -> assertContains ( '<th class="name">Aborted clients' , $ html ) ; $ this -> assertContains ( '<span class="allfine">0</span>' , $ html ) ; $ this -> assertContains ( '<th class="name">Aborted connects' , $ html ) ; $ this -> assertContains ( '<th class="name">Com delete multi' , $ html ) ; $ this -> assertContains ( '<th class="name">Com create function' , $ html ) ; $ this -> assertContains ( '<th class="name">Com empty query' , $ html ) ; }
Test for Variables::getHtmlForVariablesList
 @return void
 @group medium
Test for Variables :: getHtmlForVariablesList @return void @group medium
//Call the test function //validate 1: Variables::getHtmlForVariablesList //validate 3:Items