Completed
Push — 1.0 ( ea6409...9b1c59 )
by Peter
08:58
created

BitNotSpec::it_is_a_bit_not()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace tests\Happyr\DoctrineSpecification\Operand;
4
5
use Doctrine\ORM\QueryBuilder;
6
use Happyr\DoctrineSpecification\Operand\BitNot;
7
use PhpSpec\ObjectBehavior;
8
9
/**
10
 * @mixin BitNot
11
 */
12 View Code Duplication
class BitNotSpec extends ObjectBehavior
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    private $field = 'foo';
15
16
    public function let()
17
    {
18
        $this->beConstructedWith($this->field);
19
    }
20
21
    public function it_is_a_bit_not()
22
    {
23
        $this->shouldBeAnInstanceOf('Happyr\DoctrineSpecification\Operand\BitNot');
24
    }
25
26
    public function it_is_a_operand()
27
    {
28
        $this->shouldBeAnInstanceOf('Happyr\DoctrineSpecification\Operand\Operand');
29
    }
30
31
    public function it_is_transformable(QueryBuilder $qb)
32
    {
33
        $this->transform($qb, 'a')->shouldReturn('(~ a.foo)');
34
    }
35
}
36