Gaufrette\Adapter\InMemory::exists PHP Method

exists() public method

public exists ( $key )
    public function exists($key)
    {
        return array_key_exists($key, $this->files);
    }

Usage Example

Beispiel #1
0
 public function testWriteAndRead()
 {
     $adapter = new InMemory();
     $this->assertFalse($adapter->exists('foobar'));
     $adapter->write('foobar', 'Some content');
     $this->assertTrue($adapter->exists('foobar'));
     $this->assertEquals('Some content', $adapter->read('foobar'));
 }
All Usage Examples Of Gaufrette\Adapter\InMemory::exists