Completed
Push — develop ( 424d24...519234 )
by Novikov
01:31
created

SFTPTest::testConnect()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace SF2Helpers\SFTPBundle\Tests\SFTP;
4
5
use SF2Helpers\SFTPBundle\SFTP\SFTP;
6
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
7
8
class SFTPTest extends WebTestCase
9
{
10
    /** @var SFTP $sftpService */
11
    private $sftpService;
12
13
    /**
14
     * Test connect()
15
     */
16
    public function testConnect()
17
    {
18
        //$this->assertEquals(1, 1);
0 ignored issues
show
Unused Code Comprehensibility introduced by
80% 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...
19
    }
20
21
    /**
22
     * Set up fixtures for testing
23
     */
24
    public function setUp()
25
    {
26
        require_once __DIR__.'/../AppKernel.php';
27
        $kernel = new \AppKernel('test', true);
28
        $kernel->boot();
29
        $container         = $kernel->getContainer();
30
        $this->sftpService = $container->get('sf2h.sftp');
31
    }
32
}
33