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LXE[ll$7O1,$8h۲#77ZJ,6`N"~_4.(zz/uƑ7=E.o^vɴ1l; ;{N#^;UWpa:\C\$;$lT!tv`.kHu	_Mv ){h2y[ЊM#("Buh#"~\R^|R[}&RL/ne,'a1NBy[ЊM#("Buh#"~J[3\<\BR tJLFXb/(S{ئCwU-wYu=9jN/nnBf*vbD<RE(Bc,V8NmڜHY%  dȅa"8=*<]&c=x3Nᾣ1#ɎzW)Yɂn
_-9|QWuW2gnEW8ˮX	:o^٨q&<n[h٪KH6I gFs:tWēq$QQ0 ʯpZQsbo#TDa槽n-Eܿ$@(Nm~)3gj!1nSac*Tw+o),K2vJJ=ʭ+nFwa3Nᾣ1#Ɏz	IZz<kӾGfLogx.`U.[0-a`u]޳eAr=		q2V18.|/(S{زSGGo:sd3C1FK!זg9/(S{ئCwU-wYu=t#bNszW0SυWIOS!:\C\$;$lTrahlW(C&sdhz x-bdFF4,[3Nᾣ1#ɎzGB!=3Nᾣ1#Ɏz	IZz<s38[}T{(GH/vm"{9`tZ\		q2V18.|/(S{h"t.luG3毻9)L/(S{ئCwU-wYu=w3X傒'? 
@I#̯C+h٪KH6I gFs:tWēq$V(̜HuE
WC	X+Da槽n-Eܿ$@(Nm~?$7JB$<1nSac*Tw+oHksA895=a+@]G)3Nᾣ1#Ɏz}kh#	ʡ/(S{ئCwU-wYu=w3X傒'? ^:$of?H0Vk{y	A;<SZ[`|? ,AAw8,?N¿Ry(mڜHY%Wn!ϩLbGibvs٦fBs{~,~.|zNH~耩H9솾*'KWF@ҔjIC)ǦHYJi:]-\3Nᾣ1#ɎztVMN q/(S{ئCwU-wYu=w;Ղ[H!1*sQZz(s{~,~.|zNH~耩H9솾*'KWF'[ļAK}EG3czvC-                   'type'  => 2,
                ),
                'innodb_open_files' => array(
                    'type'  => 2,
                ),
                'innodb_support_xa' => array(
                ),
                'innodb_sync_spin_loops' => array(
                    'type'  => 2,
                ),
                'innodb_table_locks' => array(
                    'type'  => 3,
                ),
                'innodb_thread_concurrency' => array(
                    'type'  => 2,
                ),
                'innodb_thread_sleep_delay' => array(
                    'type'  => 2,
                ),
            ),
            $this->object->getVariables()
        );
    }

    /**
     * Test for getVariablesLikePattern
     *
     * @return void
     */
    public function testGetVariablesLikePattern()
    {
        $this->assertEquals(
            'innodb\\_%',
            $this->object->getVariablesLikePattern()
        );
    }

    /**
     * Test for getInfoPages
     *
     * @return void
     */
    public function testGetInfoPages()
    {
        $this->assertEquals(
            array(),
            $this->object->getInfoPages()
        );
        $this->object->support = 2;
        $this->assertEquals(
            array (
                'Bufferpool' => 'Buffer Pool',
                'Status' => 'InnoDB Status'
            ),
            $this->object->getInfoPages()
        );
    }

    /**
     * Test for getPageBufferpool
     *
     * @return void
     */
    public function testGetPageBufferpool()
    {
        $this->assertEquals(
            '<table class="data" id="table_innodb_bufferpool_usage">
    <caption class="tblHeaders">
        Buffer Pool Usage
    </caption>
    <tfoot>
        <tr>
            <th colspan="2">
                Total
                : 4,096&nbsp;pages / 65,536&nbsp;KiB
            </th>
        </tr>
    </tfoot>
    <tbody>
        <tr class="odd">
            <th>Free pages</th>
            <td class="value">0</td>
        </tr>
        <tr class="even">
            <th>Dirty pages</th>
            <td class="value">0</td>
        </tr>
        <tr class="odd">
            <th>Pages containing data</th>
            <td class="value">0
</td>
        </tr>
        <tr class="even">
            <th>Pages to be flushed</th>
            <td class="value">0
</td>
        </tr>
        <tr class="odd">
            <th>Busy pages</th>
            <td class="value">0
</td>
        </tr>    </tbody>
</table>

<table class="data" id="table_innodb_bufferpool_activity">
    <caption class="tblHeaders">
        Buffer Pool Activity
    </caption>
    <tbody>
        <tr class="odd">
            <th>Read requests</th>
            <td class="value">64
</td>
        </tr>
        <tr class="even">
            <th>Write requests</th>
            <td class="value">64
</td>
        </tr>
        <tr class="odd">
            <th>Read misses</th>
            <td class="value">32
</td>
        </tr>
        <tr class="even">
            <th>Write waits</th>
            <td class="value">0
</td>
        </tr>
        <tr class="odd">
            <th>Read misses in %</th>
            <td class="value">50   %
</td>
        </tr>
        <tr class="even">
            <th>Write waits in %</th>
            <td class="value">0 %
</td>
        </tr>
    </tbody>
</table>
',
            $this->object->getPageBufferpool()
        );
    }

    /**
     * Test for getPageStatus
     *
     * @return void
     */
    public function testGetPageStatus()
    {
        $this->assertEquals(
            '<pre id="pre_innodb_status">' . "\n" . "\n" . '</pre>' . "\n",
            $this->object->getPageStatus()
        );

    }

    /**
     * Test for getPage
     *
     * @return void
     */
    public function testGetPage()
    {
        $this->assertEquals(
            '',
            $this->object->getPage('Status')
        );
        $this->object->support = 2;
        $this->assertEquals(
            '<pre id="pre_innodb_status">' . "\n" . "\n" . '</pre>' . "\n",
            $this->object->getPage('Status')
        );
    }

    /**
     * Test for getMysqlHelpPage
     *
     * @return void
     */
    public function testGetMysqlHelpPage()
    {
        $this->assertEquals(
            'innodb-storage-engine',
            $this->object->getMysqlHelpPage()
        );

    }

    /**
     * Test for getInnodbPluginVersion
     *
     * @return void
     */
    public function testGetInnodbPluginVersion()
    {
        $this->assertEquals(
            '1.1.8',
            $this->object->getInnodbPluginVersion()
        );

    }

    /**
     * Test for supportsFilePerTable
     *
     * @return void
     */
    public function testSupportsFilePerTable()
    {
        $this->assertFalse(
            $this->object->supportsFilePerTable()
        );

    }

    /**
     * Test for getInnodbFileFormat
     *
     * @return void
     */
    public function testGetInnodbFileFormat()
    {
        $this->assertEquals(
            'Antelope',
            $this->object->getInnodbFileFormat()
        );

    }
}
