PHP Class spec\LdapTools\Factory\LdapObjectSchemaFactorySpec

Inheritance: extends PhpSpec\ObjectBehavior
Mostra file Open project: ldaptools/ldaptools

Public Methods

Method Description
it_is_initializable ( )
it_should_build_the_cache_item_if_it_cannot_be_found ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
it_should_build_the_cache_when_auto_cache_is_enabled_and_the_cache_item_is_out_of_date ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
it_should_call_the_load_schema_event ( $dispatcher )
it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
it_should_not_build_the_cache_when_auto_cache_is_enabled_and_the_cache_item_is_not_out_of_date ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
it_should_not_call_the_load_schema_event_when_retrieving_from_the_cache ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
it_should_return_an_LdapObjectSchema_object_when_calling_get ( )
it_should_throw_a_parser_exception_when_the_schema_object_type_is_not_found ( )
let ( LdapTools\Event\EventDispatcherInterface $dispatcher )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_should_build_the_cache_item_if_it_cannot_be_found() public method

public it_should_build_the_cache_item_if_it_cannot_be_found ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface

it_should_build_the_cache_when_auto_cache_is_enabled_and_the_cache_item_is_out_of_date() public method

public it_should_build_the_cache_when_auto_cache_is_enabled_and_the_cache_item_is_out_of_date ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface

it_should_call_the_load_schema_event() public method

public it_should_call_the_load_schema_event ( $dispatcher )

it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on() public method

public it_should_not_build_the_cache_item_if_it_is_in_the_cache_and_auto_cache_is_not_on ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface

it_should_not_build_the_cache_when_auto_cache_is_enabled_and_the_cache_item_is_not_out_of_date() public method

public it_should_not_build_the_cache_when_auto_cache_is_enabled_and_the_cache_item_is_not_out_of_date ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface

it_should_not_call_the_load_schema_event_when_retrieving_from_the_cache() public method

public it_should_not_call_the_load_schema_event_when_retrieving_from_the_cache ( LdapTools\Cache\CacheInterface $cache, LdapTools\Schema\Parser\SchemaParserInterface $parser, $dispatcher )
$cache LdapTools\Cache\CacheInterface
$parser LdapTools\Schema\Parser\SchemaParserInterface

it_should_return_an_LdapObjectSchema_object_when_calling_get() public method

it_should_throw_a_parser_exception_when_the_schema_object_type_is_not_found() public method

let() public method

public let ( LdapTools\Event\EventDispatcherInterface $dispatcher )
$dispatcher LdapTools\Event\EventDispatcherInterface