| @@ 56-65 (lines=10) @@ | ||
| 53 | $this->assertEquals($loader, current($loaders)); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function testHas() |
|
| 57 | { |
|
| 58 | $loader = $this->createMock(LoaderInterface::class); |
|
| 59 | $alias = 'test'; |
|
| 60 | ||
| 61 | $collection = new LoaderCollection(); |
|
| 62 | $collection->add($alias, $loader); |
|
| 63 | ||
| 64 | $this->assertTrue($collection->has($alias)); |
|
| 65 | } |
|
| 66 | ||
| 67 | public function testGet() |
|
| 68 | { |
|
| @@ 67-76 (lines=10) @@ | ||
| 64 | $this->assertTrue($collection->has($alias)); |
|
| 65 | } |
|
| 66 | ||
| 67 | public function testGet() |
|
| 68 | { |
|
| 69 | $loader = $this->createMock(LoaderInterface::class); |
|
| 70 | $alias = 'test'; |
|
| 71 | ||
| 72 | $collection = new LoaderCollection(); |
|
| 73 | $collection->add($alias, $loader); |
|
| 74 | ||
| 75 | $this->assertEquals($loader, $collection->get($alias)); |
|
| 76 | } |
|
| 77 | } |
|