2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for supporting foreign key
6 * @author Michal Biniek <michal@bystrzyca.pl>
7 * @package phpMyAdmin-test
14 require_once 'PHPUnit/Framework.php';
19 require_once './libraries/common.lib.php';
22 * Test supported foreign key.
25 class PMA_foreignKeySupported_test
extends PHPUnit_Framework_TestCase
28 * data provider for foreign key supported test
31 public function foreignkeySupportedDataProvider() {
33 array('MyISAM', false),
34 array('innodb', true),
40 * foreign key supported test
41 * @dataProvider foreignkeySupportedDataProvider
44 public function testForeignkeySupported($a, $e) {
45 $this->assertEquals($e, PMA_foreignkey_supported($a));