Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function testUsher() |
||
13 | { |
||
14 | $factory = FontsFactory::create(__DIR__ . '/fixtures/fonts'); |
||
15 | $placer = PlacerFactory::getInstance()->getPlacer('Linear Horizontal', 800, 600, 5); |
||
16 | $usher = new Usher(800, 600, $placer); |
||
17 | $font = $factory->getImagineFont('Arial.ttf', 12); |
||
18 | $place = $usher->getPlace($font->box('foobar', 0)); |
||
19 | var_dump($place, $font->box('foobar', 0)); |
||
|
|||
20 | $place = $usher->getPlace($font->box('foobar', 90)); |
||
21 | var_dump($place, $font->box('foobar', 90)); |
||
22 | } |
||
23 | } |
||
24 |