@@ 14-23 (lines=10) @@ | ||
11 | ||
12 | class MeasureConverterSpec extends ObjectBehavior |
|
13 | { |
|
14 | function let() |
|
15 | { |
|
16 | $filename = realpath(dirname(__FILE__) .'/../Resources/config/measure-test.yml'); |
|
17 | if (!file_exists($filename)) { |
|
18 | throw new \Exception(sprintf('Config file "%s" does not exist', $filename)); |
|
19 | } |
|
20 | ||
21 | $config = Yaml::parse(file_get_contents($filename)); |
|
22 | $this->beConstructedWith($config); |
|
23 | } |
|
24 | ||
25 | function it_allows_to_define_the_family() |
|
26 | { |
@@ 17-27 (lines=11) @@ | ||
14 | */ |
|
15 | class MeasureManagerSpec extends ObjectBehavior |
|
16 | { |
|
17 | function let() |
|
18 | { |
|
19 | $filename = realpath(dirname(__FILE__) .'/../Resources/config/measure-test.yml'); |
|
20 | if (!file_exists($filename)) { |
|
21 | throw new \Exception(sprintf('Config file "%s" does not exist', $filename)); |
|
22 | } |
|
23 | ||
24 | $config = Yaml::parse(file_get_contents($filename)); |
|
25 | ||
26 | $this->setMeasureConfig($config['measures_config']); |
|
27 | } |
|
28 | ||
29 | function it_throws_an_exception_when_try_to_get_symbols_of_unknown_family() |
|
30 | { |