Completed
Pull Request — master (#6)
by Chuck
02:31
created

IsHiddenTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2015 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace Flyfinder\Specification;
14
15
use PHPUnit\Framework\TestCase;
16
use Mockery as m;
17
18
/**
19
 * Test case for IsHidden
20
 * @coversDefaultClass Flyfinder\Specification\IsHidden
21
 */
22
class IsHiddenTest extends TestCase
23
{
24
    /** @var IsHidden */
25
    private $fixture;
26
27
    /**
28
     * Initializes the fixture for this test.
29
     */
30
    public function setUp()
31
    {
32
        $this->fixture = new IsHidden();
33
    }
34
35
    public function tearDown()
36
    {
37
        m::close();
38
    }
39
40
    /**
41
     * @covers ::isSatisfiedBy
42
     */
43
    public function testIfSpecificationIsSatisfied()
44
    {
45
        $this->assertTrue($this->fixture->isSatisfiedBy(['basename' => '.test']));
46
    }
47
48
    /**
49
     * @covers ::isSatisfiedBy
50
     */
51
    public function testIfSpecificationIsNotSatisfied()
52
    {
53
        $this->assertFalse($this->fixture->isSatisfiedBy(['basename' => 'test']));
54
    }
55
}
56