/** * Tests all() method. */ public function testAll() { $this->assertTrue($this->storage->add('value', 'id')); $this->assertCount(1, $this->storage->all()); $this->assertTrue($this->storage->removeById('id')); $this->assertFalse($this->storage->containsId('id')); $this->assertCount(0, $this->storage->all()); }