| Code Coverage
| Classes and Traits | Functions and Methods | Lines
Total | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | CRAP | 75.00% covered (warning) | 75.00% | 3 / 4
EvalLoader | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2.06 | 75.00% covered (warning) | 75.00% | 3 / 4
load(MockDefinition $definition) | 0.00% covered (danger) | 0.00% | 0 / 1 | 2.06 | 75.00% covered (warning) | 75.00% | 3 / 4

1 | <?php
2 |
3 | namespace Mockery\Loader;
4 |
5 | use Mockery\Loader\Loader;
6 | use Mockery\Generator\MockDefinition;
7 |
8 | class EvalLoader implements Loader
9 | {
10 | public function load(MockDefinition $definition)
11 | {
12 | if (class_exists($definition->getClassName(), false)) {
13 | return;
14 | }
15 |
16 | eval("?>" . $definition->getCode());
17 | }
18 | }