3.3.9.1 release
[phpmyadmin/crack.git] / test / PMA_foreignKeySupported_test.php
blob5ce8ce276947ab526f512f68687da18a8c3a5c40
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test for supporting foreign key
6 * @author Michal Biniek <michal@bystrzyca.pl>
7 * @package phpMyAdmin-test
8 * @version $Id$
9 */
11 /**
12 * Tests core.
14 require_once 'PHPUnit/Framework.php';
16 /**
17 * Include to test.
19 require_once './libraries/common.lib.php';
21 /**
22 * Test supported foreign key.
25 class PMA_foreignKeySupported_test extends PHPUnit_Framework_TestCase
27 /**
28 * data provider for foreign key supported test
31 public function foreignkeySupportedDataProvider() {
32 return array(
33 array('MyISAM', false),
34 array('innodb', true),
35 array('pBxT', true)
39 /**
40 * foreign key supported test
41 * @dataProvider foreignkeySupportedDataProvider
44 public function testForeignkeySupported($a, $e) {
45 $this->assertEquals($e, PMA_foreignkey_supported($a));