HeaderHelperTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * CakePHPify : CakePHP Plugin for Shopify API Authentication
4
 * Copyright (c) Multidimension.al (http://multidimension.al)
5
 * Github : https://github.com/multidimension-al/cakephpify
6
 *
7
 * Licensed under The MIT License
8
 * For full copyright and license information, please see the LICENSE file
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright (c) Multidimension.al (http://multidimension.al)
12
 * @link      https://github.com/multidimension-al/cakephpify CakePHPify Github
13
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
14
 */
15
16
namespace Multidimensional\Cakephpify\Test\TestCase\Shell\Helper;
17
18
use Cake\Console\ConsoleIo;
19
use Cake\TestSuite\Stub\ConsoleOutput;
20
use Cake\TestSuite\TestCase;
21
use Multidimensional\Cakephpify\Shell\Helper\HeaderHelper;
22
23
class HeaderHelperTest extends TestCase
24
{
25
26
    /**
27
     * @var ConsoleOutput
28
     */
29
    public $stub;
30
    
31
    /**
32
     * @var ConsoleIo
33
     */
34
     
35
    public $io;
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $io. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
36
    
37
    /**
38
     * @var HeaderHelper
39
     */
40
    public $helper;
41
42
    /**
43
     * setUp method
44
     *
45
     * @return void
46
     */
0 ignored issues
show
introduced by
There must be no blank lines after the function comment
Loading history...
47
48
    public function setUp()
49
    {
50
        parent::setUp();
51
        
52
        $this->stub = new ConsoleOutput();
53
        $this->io = new ConsoleIo($this->stub);
54
        $this->helper = new HeaderHelper($this->io);
55
    }
56
    
57
    public function testOutput()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
58
    {
59
        $this->markTestIncomplete('Not implemented yet.');
60
        /*$data = [
0 ignored issues
show
Unused Code Comprehensibility introduced by
59% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
61
        
62
        ];
63
        $this->helper->output($data);
64
        $expected = [
65
        
66
        ];
67
        $this->assertEquals($expected, $this->stub->messages());*/
68
    }
69
}
70