Hoa central
Issue.php
Go to the documentation of this file.
1 <?php
2 
38 
39 use Hoa\Ruler as LUT;
40 use Hoa\Test;
41 
50 class Issue extends Test\Unit\Suite
51 {
52  public function case_github_50()
53  {
54  $this
55  ->given(
56  $ruler = new LUT(),
57  $rule = 'variable',
58  $context = new LUT\Context(),
59  $context['variable'] = 'file'
60  )
61  ->when(function () use ($ruler, $rule, $context) {
62  $ruler->assert($rule, $context);
63  })
64  ->error()
65  ->notExists();
66  }
67 }