| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class EnvVarsSetterTest extends TestCase |
||
| 19 | { |
||
| 20 | /** @var DotenvParser|MockObject */ |
||
| 21 | private $parser; |
||
| 22 | |||
| 23 | /** @var EnvVarsSetter */ |
||
| 24 | private $setter; |
||
| 25 | |||
| 26 | private $envPath = './tests/fixtures/.env'; |
||
| 27 | |||
| 28 | public function setUp() |
||
| 29 | { |
||
| 30 | $this->parser = $this->getMockBuilder(DotenvParser::class) |
||
| 31 | ->setMethods(['parse']) |
||
| 32 | ->getMock(); |
||
| 33 | $this->parser->method('parse')->willReturn(['TEST_FOO' => 'foo']); |
||
|
|
|||
| 34 | $this->setter = new EnvVarsSetter($this->parser); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function testEnvFileIsNotFoundWithWrongEnv() |
||
| 41 | } |
||
| 42 | |||
| 43 | public function testEnvFileIsFoundWithEnv() |
||
| 49 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.