| @@ 35-42 (lines=8) @@ | ||
| 32 | $this->assertEquals($this->getDefaultBigFontText(), $output); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function testRender_SlantFont() |
|
| 36 | { |
|
| 37 | $figlet = new Figlet(); |
|
| 38 | $figlet->setFont('slant'); |
|
| 39 | $output = $figlet->render('Test'); |
|
| 40 | ||
| 41 | $this->assertEquals($this->getSlantFontText(), $output); |
|
| 42 | } |
|
| 43 | ||
| 44 | public function testRender_StretchedAndColorized() |
|
| 45 | { |
|
| @@ 91-102 (lines=12) @@ | ||
| 88 | $this->assertEquals($this->getDefaultBigFontText(), $output); |
|
| 89 | } |
|
| 90 | ||
| 91 | public function testRender_NewFontDir() |
|
| 92 | { |
|
| 93 | $figlet = new Figlet(); |
|
| 94 | ||
| 95 | $figlet |
|
| 96 | ->setFontDir(__DIR__ .'/font/') |
|
| 97 | ->setFont('slant'); |
|
| 98 | ||
| 99 | $output = $figlet->render('Test'); |
|
| 100 | ||
| 101 | $this->assertEquals($this->getSlantFontText(), $output); |
|
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * @expectedException Exception |
|