phpmyadmin/test/libraries/Files_test.php
Michal Čihař b5b869419f Avoid nested output buffer problems in test
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-12 15:28:22 +01:00

49 lines
979 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* tests for bookmark.lib.php
*
* @package PhpMyAdmin-test
*/
/*
* Include to test.
*/
/**
* tests for bookmark.lib.php
*
* @package PhpMyAdmin-test
*/
class FilesTest extends PHPUnit_Framework_TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @access protected
* @return void
*/
public function setUp()
{
}
public function testJsMessages()
{
$GLOBALS['pmaThemeImage'] = '';
$cfg = array(
'AllowUserDropDatabase' => true,
'GridEditing' => 'click',
'OBGzip' => false,
'ServerDefault' => 1,
);
$GLOBALS['cfg'] = $cfg;
require 'js/messages.php';
$buffer->stop();
$out = $buffer->getContents();
$this->assertContains('var PMA_messages = new Array();', $out);
}
}