Ejemplo n.º 1
0
 /**
  * Tests basic operations.
  */
 public function testBasicOperations()
 {
     $this->assertTrue($this->storage->add('value', 'id'));
     $this->assertTrue($this->storage->containsId('id'));
     $this->assertEquals('value', $this->storage->findById('id'));
     $this->storage->add('another-value');
     $this->assertTrue($this->storage->contains('another-value'));
     $this->assertTrue($this->storage->remove('another-value'));
     $this->assertFalse($this->storage->contains('another-value'));
 }