public function testStore() {
for ($i = 0; $i < 10; $i++) {
$profile = new Profile('token_' . $i);
$profile
->setIp('127.0.0.1');
$profile
->setUrl('http://foo.bar');
$profile
->setMethod('GET');
$this
->getStorage()
->write($profile);
}
$this
->assertCount(10, $this
->getStorage()
->find('127.0.0.1', 'http://foo.bar', 20, 'GET'), '->write() stores data in the storage');
}