2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for supporting foreign key
6 * @package phpMyAdmin-test
12 require_once 'PHPUnit/Framework.php';
17 require_once './libraries/common.lib.php';
20 * Test supported foreign key.
23 class PMA_foreignKeySupported_test
extends PHPUnit_Framework_TestCase
26 * data provider for foreign key supported test
29 public function foreignkeySupportedDataProvider() {
31 array('MyISAM', false),
32 array('innodb', true),
38 * foreign key supported test
39 * @dataProvider foreignkeySupportedDataProvider
42 public function testForeignkeySupported($a, $e) {
43 $this->assertEquals($e, PMA_foreignkey_supported($a));