@@ 26-33 (lines=8) @@ | ||
23 | $this->getContent()->shouldBeString(); |
|
24 | } |
|
25 | ||
26 | function it_should_works_if_file_is_an_array_but_without_filename() |
|
27 | { |
|
28 | $this->beConstructedWith(['path' => __DIR__.'/../fixtures/Yproximite.png']); |
|
29 | ||
30 | $this->getName()->shouldReturn('Yproximite.png'); |
|
31 | $this->getPath()->shouldReturn(__DIR__.'/../fixtures/Yproximite.png'); |
|
32 | $this->getContent()->shouldBeString(); |
|
33 | } |
|
34 | ||
35 | function it_should_works_if_file_is_an_array() |
|
36 | { |
|
@@ 35-42 (lines=8) @@ | ||
32 | $this->getContent()->shouldBeString(); |
|
33 | } |
|
34 | ||
35 | function it_should_works_if_file_is_an_array() |
|
36 | { |
|
37 | $this->beConstructedWith(['path' => __DIR__.'/../fixtures/Yproximite.png', 'name' => 'Filename.png']); |
|
38 | ||
39 | $this->getName()->shouldReturn('Filename.png'); |
|
40 | $this->getPath()->shouldReturn(__DIR__.'/../fixtures/Yproximite.png'); |
|
41 | $this->getContent()->shouldBeString(); |
|
42 | } |
|
43 | ||
44 | function it_should_fails_if_file_do_not_exists() |
|
45 | { |