File: BasicTest.php

package info (click to toggle)
php-text-figlet 1.0.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: php: 323; xml: 108; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 2,014 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

class BasicTest extends \PHPUnit\Framework\TestCase
{
    public function testLineEcho(): void
    {
        $figlet = new Text_Figlet();
        $error = $figlet->LoadFont('/usr/share/php/data/Text_Figlet/fonts/makisupa.flf');
        $this->assertTrue($error);
        $this->assertSame(
            implode(
                "\n",
                [
                    ' ######*                                                                 ##*  ',
                    ' #######*                                                                ##*  ',
                    ' ###*####*                                                               ##*  ',
                    ' ##*  *###   #######    #####*    #######    *###*    ##* *##            ##*  ',
                    ' ##*   *##   #######*   ######*   #######   *#####*   ### *##            ##*  ',
                    ' ##*   *##   ##*****    ##**###   ***##**   ###*###   ###**##            ##*  ',
                    ' ##*   *##   ##*        ##* *##     *##     ##* *##   ####*##            ##*  ',
                    ' ##*   *##   ######     #######     *##     ##* *##   ####*##            ##*  ',
                    ' ##*   *##   ######     ######*     *##     ##***##   #######            ##*  ',
                    ' ##*   *##   ##****     ##**###     *##     #######   ##*####            ##*  ',
                    ' ##*  *###   ##*        ##* *##     *##     #######   ##*####                 ',
                    ' ###*####*   ##*****    ##**###   ***##**   ##* *##   ##**###            **   ',
                    ' #######*    #######*   ######*   #######   ##* *##   ##* ###            ##*  ',
                    ' ######*     #######    #####*    #######   ##* *##   ##* *##            ##*  ',
                    '                                                                              ',
                    '        ',
                ]
            ),
            $figlet->LineEcho("Debian !")
        );
    }
}