function it_should_delete_all_items_in_the_cache()
{
$this->setCacheFolder($this->testCacheDir);
$itemOne = new LdapObjectSchema('foo', 'bar');
$itemTwo = new LdapObjectSchema('bar', 'foo');
$this->set($itemOne);
$this->set($itemTwo);
$this->contains(LdapObjectSchema::getCacheType(), 'foo.bar')->shouldBeEqualTo(true);
$this->contains(LdapObjectSchema::getCacheType(), 'bar.foo')->shouldBeEqualTo(true);
$this->deleteAll();
$this->contains(LdapObjectSchema::getCacheType(), 'foo.bar')->shouldBeEqualTo(false);
$this->contains(LdapObjectSchema::getCacheType(), 'bar.foo')->shouldBeEqualTo(false);
}