2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for supporting foreign key
6 * @package phpMyAdmin-test
13 require_once 'PHPUnit/Framework.php';
18 require_once './libraries/common.lib.php';
21 * Test supported foreign key.
24 class PMA_foreignKeySupported_test
extends PHPUnit_Framework_TestCase
27 * data provider for foreign key supported test
30 public function foreignkeySupportedDataProvider() {
32 array('MyISAM', false),
33 array('innodb', true),
39 * foreign key supported test
40 * @dataProvider foreignkeySupportedDataProvider
43 public function testForeignkeySupported($a, $e) {
44 $this->assertEquals($e, PMA_foreignkey_supported($a));