Test Failed
Push — master ( 766a39...696a12 )
by Dispositif
09:33
created

WikiArrayTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCompleteFantasyOrder() 0 8 1
1
<?php
2
/**
3
 * This file is part of dispositif/wikibot application
4
 * 2019 : Philippe M. <[email protected]>
5
 * For the full copyright and MIT license information, please view the LICENSE file.
6
 */
7
8
declare(strict_types=1);
9
10
namespace App\Domain\Utils;
11
12
use PHPUnit\Framework\TestCase;
13
14
class WikiArrayTraitTest extends TestCase
15
{
16
    use WikiArrayTrait;
17
18
    public function testCompleteFantasyOrder()
19
    {
20
        $fantasyOrder = ['fantaisie', 'auteur', 'titre', 'année'];
21
        $cleanOrder = ['bla', 'first', 'auteur', 'titre', 'sous-titre', 'année', 'fantaisie', 'fantaisie2'];
22
23
        $this::assertSame(
24
            ['bla', 'first', 'fantaisie', 'fantaisie2', 'auteur', 'titre', 'sous-titre', 'année'],
25
            $this->completeFantasyOrder($fantasyOrder, $cleanOrder)
26
        );
27
    }
28
29
}
30