Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added missing $this
  • Loading branch information
jakoch committed Sep 26, 2012
1 parent e04f0f0 commit 5d64355
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/unittests/framework/Koch/Cache/Adapter/ApcTest.php
Expand Up @@ -39,9 +39,9 @@ public function tearDown()
*/
public function testFetch()
{
$this->assertFalse($object->contains('key1'));
$object->store('key1', 'value1');
$this->assertEqual('value1', $object->fetch('key1'));
$this->assertFalse($this->object->contains('key1'));
$this->object->store('key1', 'value1');
$this->assertEqual('value1', $this->object->fetch('key1'));
}

/**
Expand All @@ -50,9 +50,9 @@ public function testFetch()
*/
public function testStore()
{
$this->assertFalse($object->contains('key1'));
$object->store('key1', 'value1');
$this->assertEqual('value1', $object->fetch('key1'));
$this->assertFalse($this->object->contains('key1'));
$this->object->store('key1', 'value1');
$this->assertEqual('value1', $this->object->fetch('key1'));
}

/**
Expand All @@ -61,14 +61,14 @@ public function testStore()
*/
public function testDelete()
{
$this->assertFalse($object->contains('key1'));
$object->store('key1', 'value1');
$this->assertEqual('value1', $object->fetch('key1'));
$this->assertTrue($object->contains('key1'));
$this->assertFalse($this->object->contains('key1'));
$this->object->store('key1', 'value1');
$this->assertEqual('value1', $this->object->fetch('key1'));
$this->assertTrue($this->object->contains('key1'));

$object->delete('key1');
$this->object->delete('key1');

$this->assertFalse($object->contains('key1'));
$this->assertFalse($this->object->contains('key1'));
}

/**
Expand All @@ -89,10 +89,10 @@ public function testClear()
*/
public function testContains()
{
$this->assertFalse($object->contains('key1'));
$object->store('key1', 'value1');
$this->assertEqual('value1', $object->fetch('key1'));
$this->assertTrue($object->contains('key1'));
$this->assertFalse($this->object->contains('key1'));
$this->object->store('key1', 'value1');
$this->assertEqual('value1', $this->object->fetch('key1'));
$this->assertTrue($this->object->contains('key1'));
}

/**
Expand Down

0 comments on commit 5d64355

Please sign in to comment.