| 1 | <?php |
||
| 19 | class Content extends atoum |
||
| 20 | { |
||
| 21 | const CONTENT = 'A sample content'; |
||
| 22 | |||
| 23 | public function testGet() |
||
| 24 | { |
||
| 25 | $this |
||
| 26 | ->given($sut = new SUT(self::CONTENT)) |
||
| 27 | ->then |
||
| 28 | ->string($sut->get()) |
||
| 29 | ->isEqualTo(self::CONTENT); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testWithBom() |
||
| 33 | { |
||
| 34 | $this |
||
| 35 | ->given($sut = new SUT(SUT::UTF8_BOM.self::CONTENT)) |
||
| 36 | ->then |
||
| 37 | ->string($sut->get()) |
||
| 38 | ->isEqualTo(self::CONTENT); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |