Completed
Push — master ( ecd5d7...f9662e )
by Julián
11:22
created

ManualTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 1
cbo 2
dl 0
loc 24
rs 10
1
<?php
2
3
/*
4
 * janitor (http://juliangut.com/janitor).
5
 * Effortless maintenance management.
6
 *
7
 * @license BSD-3-Clause
8
 * @link https://github.com/juliangut/janitor
9
 * @author Julián Gutiérrez <[email protected]>
10
 */
11
12
namespace Janitor\Test\Watcher;
13
14
use Janitor\Watcher\Manual;
15
16
/**
17
 * Class ManualTest.
18
 */
19
class ManualTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @var Manual
23
     */
24
    protected $watcher;
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function setUp()
30
    {
31
        $this->watcher = new Manual;
32
    }
33
34
    public function testMutatorsAccessors()
35
    {
36
        self::assertFalse($this->watcher->isActive());
37
38
        $this->watcher->setActive(true);
39
40
        self::assertTrue($this->watcher->isActive());
41
    }
42
}
43