$profile = new Profile('simple_quote');
$profile->setUrl('http://foo.bar/\'');
$this->storage->write($profile);
- $this->assertTrue(false !== $this->storage->read('simple_quote'), '->write() accepts single quotes in URL');
+ $this->assertNotFalse($this->storage->read('simple_quote'), '->write() accepts single quotes in URL');
$profile = new Profile('double_quote');
$profile->setUrl('http://foo.bar/"');
$this->storage->write($profile);
- $this->assertTrue(false !== $this->storage->read('double_quote'), '->write() accepts double quotes in URL');
+ $this->assertNotFalse($this->storage->read('double_quote'), '->write() accepts double quotes in URL');
$profile = new Profile('backslash');
$profile->setUrl('http://foo.bar/\\');
$this->storage->write($profile);
- $this->assertTrue(false !== $this->storage->read('backslash'), '->write() accepts backslash in URL');
+ $this->assertNotFalse($this->storage->read('backslash'), '->write() accepts backslash in URL');
$profile = new Profile('comma');
$profile->setUrl('http://foo.bar/,');
$this->storage->write($profile);
- $this->assertTrue(false !== $this->storage->read('comma'), '->write() accepts comma in URL');
+ $this->assertNotFalse($this->storage->read('comma'), '->write() accepts comma in URL');
}
public function testStoreDuplicateToken()
$profile->setMethod('GET');
$this->storage->write($profile);
- $this->assertTrue(false !== $this->storage->read('token1'));
+ $this->assertNotFalse($this->storage->read('token1'));
$this->assertCount(1, $this->storage->find('127.0.0.1', '', 10, 'GET'));
$profile = new Profile('token2');
$profile->setMethod('GET');
$this->storage->write($profile);
- $this->assertTrue(false !== $this->storage->read('token2'));
+ $this->assertNotFalse($this->storage->read('token2'));
$this->assertCount(2, $this->storage->find('127.0.0.1', '', 10, 'GET'));
$this->storage->purge();