SyntaxHighlighterStringsTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A test__construct() 0 13 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Tests\Assets\SyntaxHighlighter;
13
14
use WBW\Bundle\CoreBundle\Assets\SyntaxHighlighter\SyntaxHighlighterStrings;
15
use WBW\Bundle\CoreBundle\Tests\AbstractTestCase;
16
17
/**
18
 * SyntaxHightlighter strings test.
19
 *
20
 * @author webeweb <https://github.com/webeweb>
21
 * @package WBW\Bundle\CoreBundle\Tests\Assets\SyntaxHighlighter
22
 */
23
class SyntaxHighlighterStringsTest extends AbstractTestCase {
24
25
    /**
26
     * Test __construct()
27
     *
28
     * @return void
29
     */
30
    public function test__construct(): void {
31
32
        $obj = new SyntaxHighlighterStrings();
33
34
        $this->assertEquals("SyntaxHighlighter\n\n", $obj->getAlert());
35
        $this->assertEquals("Brush wasn't made for html-script option:", $obj->getBrushNotHtmlScript());
36
        $this->assertEquals("copy to clipboard", $obj->getCopyToClipboard());
37
        $this->assertEquals("The code is in your clipboard now", $obj->getCopyToClipboardConfirmation());
38
        $this->assertEquals("+ expand source", $obj->getExpandSource());
39
        $this->assertEquals("?", $obj->getHelp());
40
        $this->assertEquals("Can't find brush for:", $obj->getNoBrush());
41
        $this->assertEquals("print", $obj->getPrint());
42
        $this->assertEquals("view source", $obj->getViewSource());
43
    }
44
}
45