示例#1
0
 /** @dataProvider provideClients */
 public function testExpires(Memento\Client $client)
 {
     $client->store($this->getGroupKey(), $this->getKey(), array('foo' => 'bar'), 1);
     sleep(3);
     $exists = $client->exists($this->getGroupKey(), $this->getKey());
     $this->assertFalse($exists);
 }
示例#2
0
 public function testClientWIthNoEngineSupplied()
 {
     $client = new Memento\Client();
     $engine = $client->getEngine();
     $this->assertEquals(get_class($engine), 'Memento\\Engine\\File');
 }