| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function testMinify() |
||
| 24 | { |
||
| 25 | $mock = $this->getMock('MatthiasMullie\\Minify\\CSS'); |
||
| 26 | |||
| 27 | $mock |
||
| 28 | ->expects($this->once()) |
||
| 29 | ->method('add') |
||
| 30 | ->will($this->returnCallback(function($data) { |
||
| 31 | \PHPUnit_Framework_Assert::assertSame('passeddata', $data); |
||
| 32 | })) |
||
| 33 | ; |
||
| 34 | |||
| 35 | $mock |
||
| 36 | ->expects($this->once()) |
||
| 37 | ->method('minify') |
||
| 38 | ->willReturn('minified') |
||
| 39 | ; |
||
| 40 | |||
| 41 | $this->assertSame('minified', (new MatthiasMullie($mock))->minify('passeddata')); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |