CanDeleteThreadSpecificationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 31
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testIsSatisfiedBy() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the MilioooMessageBundle package.
5
 *
6
 * (c) Michiel boeckaert <[email protected]>
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Miliooo\MessagingBundle\Tests\Specifications;
12
13
use Miliooo\Messaging\Specifications\CanDeleteThreadSpecification;
14
use Miliooo\Messaging\TestHelpers\ParticipantTestHelper;
15
use Miliooo\Messaging\User\ParticipantInterface;
16
17
/**
18
 * Class CanDeleteThreadSpecification
19
 *
20
 * @author Michiel Boeckaert <[email protected]>
21
 */
22
class CanDeleteThreadSpecificationTest extends \PHPUnit_Framework_TestCase
23
{
24
    /**
25
     * Class under test.
26
     *
27
     * @var CanDeleteThreadSpecification
28
     */
29
    private $specification;
30
31
    /**
32
     * @var \PHPUnit_Framework_MockObject_MockObject
33
     */
34
    private $thread;
35
36
    /**
37
     * @var ParticipantInterface
38
     */
39
    private $participant;
40
41
    public function setUp()
42
    {
43
        $this->specification = new CanDeleteThreadSpecification();
44
        $this->thread = $this->getMock('Miliooo\Messaging\Model\ThreadInterface');
45
        $this->participant = new ParticipantTestHelper(1);
46
    }
47
48
    public function testIsSatisfiedBy()
49
    {
50
        $this->assertFalse($this->specification->isSatisfiedBy($this->participant, $this->thread));
51
    }
52
}
53