Aggregate Config (FastForward\Config\Tests\AggregateConfig)
- Invoke will aggregate all configs into one
Array Access Config Trait
- Offset exists will call has method
- Offset get will call get method
- Offset set will call set method
- Offset unset will call remove method
Array Config (FastForward\Config\Tests\ArrayConfig)
- Get will return primitive or nested config
- Has returns expected results
- Set with array merges correctly
- Set with key value pairs
- Set throws exception for invalid key
- Set accepts another config interface
- Get iterator yields all keys
- Dot notation merges associative nested keys
- Remove key removes top level keys
- Remove key removes nested keys
- Remove key removes deep nested keys
Cached Config (FastForward\Config\Tests\CachedConfig)
- Invoke will return cached config instance when not cached
- Invoke will return cached config instance when already cached
- Set will update cache when persistent is true
- Set will not update cache when persistent is false
- Remove will update cache when persistent is true
- Remove will not update cache when persistent is false
Config Container (FastForward\Config\Tests\Container\ConfigContainer)
- Has returns true for known internal identifiers
- Has returns true if config contains key
- Has returns false for unknown key
- Get returns container for internal identifiers
- Get returns config value for key
- Get throws exception for unknown key
- Get with config container will return config container
Config Helper (FastForward\Config\Tests\Helper\ConfigHelper)
- Is assoc will return true for associative array
- Is assoc will return false for sequential array
- Is assoc will return false for non array
- Normalize will convert dot notation to nested array
- Normalize will handle mixed nested arrays
- Normalize will return indexed array unchanged
- Normalize will merge arrays when keys overlap
- Flatten will convert nested array to dot notation
- Flatten will handle empty array
Container Not Found Exception (FastForward\Config\Tests\Exception\ContainerNotFoundException)
- For key returns expected message
Directory Config (FastForward\Config\Tests\DirectoryConfig)
- Constructor will throw exception for unreadable directory
- Constructor will succeed for valid directory
Functions (FastForward\Config\Tests\Functions)
- Config accepts array and returns aggregate config
- Config accepts invokable class name
- Config cache wraps config with cache
- Config dir returns expected instance
- Config provider returns expected implementation
- Config will load directory when string is directory
Invalid Argument Exception (FastForward\Config\Tests\Exception\InvalidArgumentException)
- For non string key with value will return expected message
- For unreadable directory will return expected message
Lazy Load Config Trait (FastForward\Config\Tests\LazyLoadConfigTrait)
- Get delegates to config
- Remove removes from config
- Has returns expected results
- Set merges values correctly
- To array and iterator are consistent
Recursive Directory Config (FastForward\Config\Tests\RecursiveDirectoryConfig)
- Constructor will throw exception for unreadable root directory
- Constructor will aggregate nested php files