Add namespace to properties tests
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
433c2725be
commit
5c7ee91beb
@ -5,15 +5,17 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class OptionsPropertyMainGroupTest extends PHPUnit_Framework_TestCase
|
||||
class OptionsPropertyMainGroupTest extends TestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
@ -5,15 +5,17 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class OptionsPropertyRootGroupTest extends PHPUnit_Framework_TestCase
|
||||
class OptionsPropertyRootGroupTest extends TestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
@ -5,15 +5,17 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Groups;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class OptionsPropertySubgroupTest extends PHPUnit_Framework_TestCase
|
||||
class OptionsPropertySubgroupTest extends TestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options\Items;
|
||||
|
||||
use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\DocPropertyItem;
|
||||
@ -13,13 +14,14 @@ use PhpMyAdmin\Properties\Options\Items\MessageOnlyPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\SelectPropertyItem;
|
||||
use PhpMyAdmin\Properties\Options\Items\TextPropertyItem;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* tests for *PhpMyAdmin\Properties\PropertyItem class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class PropertyItemsTest extends PHPUnit_Framework_TestCase
|
||||
class PropertyItemsTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Test for PhpMyAdmin\Properties\Options\Items\BoolPropertyItem::getText
|
||||
@ -169,6 +171,4 @@ class PropertyItemsTest extends PHPUnit_Framework_TestCase
|
||||
$object->getItemType()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -5,13 +5,17 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
use ReflectionProperty;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyGroup class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class OptionsPropertyGroupTest extends PHPUnit_Framework_TestCase
|
||||
class OptionsPropertyGroupTest extends TestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
@ -42,7 +46,7 @@ class OptionsPropertyGroupTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testAddProperty()
|
||||
{
|
||||
$properties = new \ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties = new ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties->setAccessible(true);
|
||||
|
||||
$properties->setValue($this->stub, array(1, 2, 3));
|
||||
@ -66,7 +70,7 @@ class OptionsPropertyGroupTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testRemoveProperty()
|
||||
{
|
||||
$properties = new \ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties = new ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties->setAccessible(true);
|
||||
|
||||
$properties->setValue($this->stub, array(1, 2, 'test', 3));
|
||||
@ -102,7 +106,7 @@ class OptionsPropertyGroupTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testGetProperties()
|
||||
{
|
||||
$properties = new \ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties = new ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties->setAccessible(true);
|
||||
$properties->setValue($this->stub, array(1, 2, 3));
|
||||
|
||||
@ -119,7 +123,7 @@ class OptionsPropertyGroupTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testGetNrOfProperties()
|
||||
{
|
||||
$properties = new \ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties = new ReflectionProperty('PhpMyAdmin\Properties\Options\OptionsPropertyGroup', '_properties');
|
||||
$properties->setAccessible(true);
|
||||
$properties->setValue($this->stub, array(1, 2, 3));
|
||||
|
||||
@ -5,13 +5,16 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyItem class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class OptionsPropertyItemTest extends PHPUnit_Framework_TestCase
|
||||
class OptionsPropertyItemTest extends TestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
@ -5,13 +5,16 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Options;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyOneItem class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class OptionsPropertyOneItemTest extends PHPUnit_Framework_TestCase
|
||||
class OptionsPropertyOneItemTest extends TestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
@ -5,10 +5,10 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
|
||||
|
||||
require_once 'test/classes/properties/plugins/ImportPluginPropertiesTest.php';
|
||||
use PhpMyAdmin\Tests\Properties\Plugins\ImportPluginPropertiesTest;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Plugins\ExportPluginProperties class. Extends PMA_ImportPluginProperties_Tests
|
||||
@ -5,15 +5,17 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PhpMyAdmin\Properties\Plugins\ImportPluginProperties;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* tests for PhpMyAdmin\Properties\Plugins\ImportPluginProperties class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class ImportPluginPropertiesTest extends PHPUnit_Framework_TestCase
|
||||
class ImportPluginPropertiesTest extends TestCase
|
||||
{
|
||||
protected $object;
|
||||
|
||||
@ -5,13 +5,16 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties\Plugins;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\Plugins\PluginPropertyItem class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class PluginPropertyItemTest extends PHPUnit_Framework_TestCase
|
||||
class PluginPropertyItemTest extends TestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
@ -5,13 +5,16 @@
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
namespace PhpMyAdmin\Tests\Properties;
|
||||
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* Tests for PhpMyAdmin\Properties\PropertyItem class
|
||||
*
|
||||
* @package PhpMyAdmin-test
|
||||
*/
|
||||
class PropertyItemTest extends PHPUnit_Framework_TestCase
|
||||
class PropertyItemTest extends TestCase
|
||||
{
|
||||
protected $stub;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user