@@ 46-53 (lines=8) @@ | ||
43 | $this->hasBeenChecked('foo')->shouldBe(true); |
|
44 | } |
|
45 | ||
46 | function it_can_register_a_get_operation(Cache $decorated) |
|
47 | { |
|
48 | $decorated->get('foo', 'default')->willReturn('bar'); |
|
49 | ||
50 | $this->hasBeenGet('foo')->shouldBe(false); |
|
51 | $this->get('foo', 'default')->shouldReturn('bar'); |
|
52 | $this->hasBeenGet('foo')->shouldBe(true); |
|
53 | } |
|
54 | ||
55 | function it_can_register_a_demand_operation(Cache $decorated) |
|
56 | { |
|
@@ 55-62 (lines=8) @@ | ||
52 | $this->hasBeenGet('foo')->shouldBe(true); |
|
53 | } |
|
54 | ||
55 | function it_can_register_a_demand_operation(Cache $decorated) |
|
56 | { |
|
57 | $decorated->demand('foo')->willReturn('bar'); |
|
58 | ||
59 | $this->hasBeenDemanded('foo')->shouldBe(false); |
|
60 | $this->demand('foo')->shouldReturn('bar'); |
|
61 | $this->hasBeenDemanded('foo')->shouldBe(true); |
|
62 | } |
|
63 | ||
64 | function it_can_register_a_delete_operation(Cache $decorated) |
|
65 | { |