Completed
Push — master ( aa9e77...027dae )
by Michael
36:24
created

ErrorWiringSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 18
rs 10
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * Contains class ErrorWiringSpec.
5
 *
6
 * PHP version 7.0
7
 *
8
 * LICENSE:
9
 * This file is part of Yet Another Php Eve Api Library also know as Yapeal
10
 * which can be used to access the Eve Online API data and place it into a
11
 * database.
12
 * Copyright (C) 2016 Michael Cummings
13
 *
14
 * This program is free software: you can redistribute it and/or modify it
15
 * under the terms of the GNU Lesser General Public License as published by the
16
 * Free Software Foundation, either version 3 of the License, or (at your
17
 * option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful, but WITHOUT
20
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
22
 * for more details.
23
 *
24
 * You should have received a copy of the GNU Lesser General Public License
25
 * along with this program. If not, see
26
 * <http://www.gnu.org/licenses/>.
27
 *
28
 * You should be able to find a copy of this license in the LICENSE.md file. A
29
 * copy of the GNU GPL should also be available in the GNU-GPL.md file.
30
 *
31
 * @copyright 2016 Michael Cummings
32
 * @license   http://www.gnu.org/copyleft/lesser.html GNU LGPL
33
 * @author    Michael Cummings <[email protected]>
34
 */
35
namespace Spec\Yapeal\Configuration;
36
37
use PhpSpec\ObjectBehavior;
38
use Yapeal\Container\ContainerInterface;
39
40
/**
41
 * Class ErrorWiringSpec
42
 *
43
 * @mixin \Yapeal\Configuration\ErrorWiring
44
 *
45
 * @method void during($method, array $params)
46
 * @method void shouldBe($value)
47
 * @method void shouldContain($value)
48
 * @method void shouldHaveKey($key)
49
 * @method void shouldHaveType($value)
50
 * @method void shouldImplement($interface)
51
 * @method void shouldNotEqual($value)
52
 * @method void shouldReturn($result)
53
 */
54
class ErrorWiringSpec extends ObjectBehavior
55
{
56
    /**
57
     *
58
     */
59
    public function it_is_initializable()
60
    {
61
        $this->shouldHaveType('Yapeal\Configuration\ErrorWiring');
62
    }
63
    /**
64
     * @param ContainerInterface $dic
65
     */
66
    public function it_provides_fluent_interface_from_wire(ContainerInterface $dic)
67
    {
68
        $this->wire($dic)
69
            ->shouldReturn($this);
70
    }
71
}
72