public function testNoWarningIsGeneratedWhenValueIsOverwrittenInCondition()
 {
     $statements = [new Assignment(new ObjectPath('foo.bar', 'foo.bar'), new Scalar('bar'), 1), new ConditionalStatement('[globalString = ENV:foo = bar]', [new Assignment(new ObjectPath('foo.bar', 'foo.bar'), new Scalar('baz'), 3)], [], 2)];
     $this->applyVisitorOnStatements($statements);
     $warnings = $this->visitor->getWarnings();
     $this->assertCount(0, $warnings);
 }
 public function testConditionalStatementsDoNotRaiseWarnings()
 {
     $statements = [new Assignment(new ObjectPath('foo.bar', 'foo.bar'), new Scalar('test'), 1), new ConditionalStatement('[globalString = ENV:test = foo]', [new Assignment(new ObjectPath('foo.baz', 'foo.baz'), new Scalar('blub'), 3)], [], 3)];
     $this->applyVisitorOnStatements($statements);
     $warnings = $this->visitor->getWarnings();
     $this->assertCount(0, $warnings);
 }