| @@ 37-45 (lines=9) @@ | ||
| 34 | ->getMock(); |
|
| 35 | } |
|
| 36 | ||
| 37 | public function testWarmUpRecursive() |
|
| 38 | { |
|
| 39 | ||
| 40 | $this->metadataFactory->expects($this->exactly(3)) |
|
| 41 | ->method('getMetadataForClass'); |
|
| 42 | ||
| 43 | $warmer = new CacheWarmer([__DIR__ . "/Files"], $this->metadataFactory); |
|
| 44 | $warmer->warmUp("foo"); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function testWarmUpRecursiveWithInclusion() |
|
| 48 | { |
|
| @@ 47-54 (lines=8) @@ | ||
| 44 | $warmer->warmUp("foo"); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function testWarmUpRecursiveWithInclusion() |
|
| 48 | { |
|
| 49 | $this->metadataFactory->expects($this->exactly(1)) |
|
| 50 | ->method('getMetadataForClass')->with(BarBar::class); |
|
| 51 | ||
| 52 | $warmer = new CacheWarmer([__DIR__ . "/Files/Ba*"], $this->metadataFactory); |
|
| 53 | $warmer->warmUp("foo"); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function testWarmUpRecursiveWithExclusion() |
|
| 57 | { |
|
| @@ 56-63 (lines=8) @@ | ||
| 53 | $warmer->warmUp("foo"); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function testWarmUpRecursiveWithExclusion() |
|
| 57 | { |
|
| 58 | $this->metadataFactory->expects($this->exactly(2)) |
|
| 59 | ->method('getMetadataForClass'); |
|
| 60 | ||
| 61 | $warmer = new CacheWarmer([__DIR__ . "/Files"], $this->metadataFactory, ["Bar"]); |
|
| 62 | $warmer->warmUp("foo"); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | ||