Bart\Configuration\TestConfig::hasFavorites PHP 메소드

hasFavorites() 공개 메소드

public hasFavorites ( )
    public function hasFavorites()
    {
        // Throw in a default here to confirm that it is ignored when a value is configured
        return $this->getBool('favorites', 'has_favorites', true);
    }

Usage Example

예제 #1
0
 public function testGetBoolFalse()
 {
     $favorites = parse_ini_string('has_favorites = false', false);
     $configs = new TestConfig();
     $configs->configureForTesting(array('favorites' => $favorites));
     $this->assertFalse($configs->hasFavorites(), 'hasFavorites');
 }