phpmyadmin/test/classes/properties/plugins/PMA_PluginPropertyItem_test.php
Dan Ungureanu 91b97fadc2 Remove unneeded closing tags.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-19 00:18:38 +03:00

59 lines
1.2 KiB
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* tests for PluginPropertyItem class
*
* @package PhpMyAdmin-test
*/
require_once 'libraries/properties/plugins/PluginPropertyItem.class.php';
/**
* Tests for PluginPropertyItem class
*
* @package PhpMyAdmin-test
*/
class PMA_PluginPropertyItem_Test extends PHPUnit_Framework_TestCase
{
protected $stub;
/**
* Configures global environment.
*
* @return void
*/
protected function setup()
{
$this->stub = $this->getMockForAbstractClass('PluginPropertyItem');
}
/**
* tearDown for test cases
*
* @return void
*/
public function tearDown()
{
unset($this->stub);
}
/**
* Test for PluginPropertyItem::getPropertyType
*
* @return void
*/
public function testGetPropertyType()
{
if ((defined('HHVM_VERSION')
&& (version_compare(constant('HHVM_VERSION'), '3.8', 'lt')))
) {
$this->markTestSkipped('Due to a bug in early versions of HHVM, this test cannot be completed.');
}
$this->assertEquals(
"plugin",
$this->stub->getPropertyType()
);
}
}