refactor(legacy): clean config
- sort imports - improve indentation - rename internal_values to legacy_values - reorder functions remove unused isYesValue
This commit is contained in:
parent
21254b048d
commit
f483852ccd
2 changed files with 135 additions and 192 deletions
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class ConfigTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testIsYesValue()
|
||||
{
|
||||
foreach (['yes', 'Yes', 'True', 'true', true] as $value) {
|
||||
$this->assertEquals(Config::isYesValue($value), true);
|
||||
}
|
||||
|
||||
foreach (['no', 'No', 'False', 'false', false] as $value) {
|
||||
$this->assertEquals(Config::isYesValue($value), false);
|
||||
}
|
||||
|
||||
foreach (['', 'anything', '0', 0, '1', 1, null] as $value) {
|
||||
$this->assertEquals(Config::isYesValue($value), false);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue