php-mpos/tests/unit/config/SampleTest.php
xisi 568445845a changes DEBUG SALT and SALTY from defines to variables
switched that in all places used (class loads mostly)
moved all includes at the beginning of index into bootstrap
moves *_PATH defines from config to bootstrap
config now uses defaults first, then user config
2014-01-29 07:34:50 -05:00

16 lines
362 B
PHP

<?php
// these are ONLY here because we're checking config options
// these should NOT be in a normal unit test
class TestDistConfig extends PHPUnit_Framework_Testcase {
/**
* Test to make sure SALT is sane
*/
function testSaltLength() {
$this->assertNotEmpty($config['SALT']);
$this->assertGreaterThan(1, strlen($config['SALTY']));
}
}
?>