Skip to content

Commit

Permalink
doctrine#154 simplified test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Oct 26, 2016
1 parent a2f4d44 commit 7fccc8a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,8 @@ public function testNotImplementsSetStateInArray()
{
$cache = $this->_getCacheDriver();

// Test save
$cache->save('test_not_set_state_in_array', [new NotSetStateClass(array(4,3,2))]);

// Test fetch
$value = $cache->fetch('test_not_set_state_in_array');
$this->assertEquals(array(4,3,2), $value[0]->getValue());

// Test contains
$cache->save('test_not_set_state_in_array', [new NotSetStateClass([4,3,2])]);
$this->assertEquals([new NotSetStateClass([4,3,2])], $cache->fetch('test_not_set_state_in_array'));
$this->assertTrue($cache->contains('test_not_set_state_in_array'));
}

Expand Down

0 comments on commit 7fccc8a

Please sign in to comment.