Bart\Configuration\TestConfig::oneTwoThree PHP Method

oneTwoThree() public method

public oneTwoThree ( )
    public function oneTwoThree()
    {
        // This value won't exist, so it should default
        return $this->getArray('missing', 'missing', [1, 2, 3]);
    }

Usage Example

Beispiel #1
0
 public function testGetArrayDefaults()
 {
     $configs = new TestConfig();
     $configs->configureForTesting([]);
     $this->assertEquals([1, 2, 3], $configs->oneTwoThree());
 }