protected function tearDown(): void
{ self::
cleanDir();
} 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->storage->
write($profile);
} $this->
assertCount(10,
$this->storage->
find('127.0.0.1', 'http://foo.bar', 20, 'GET'
), '->write() stores data in the storage'
);
} public function testChildren() { $parentProfile =
new Profile('token_parent'
);
$parentProfile->
setIp('127.0.0.1'
);