UpDownNodeTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testNodeMethodReturnsNodeObject() 0 4 1
1
<?php
2
/**
3
 * Copyright (c) 2019 - present
4
 * laravel-updown - UpDownNodeTest.php
5
 * author: Roberto Belotti - [email protected]
6
 * web : robertobelotti.com, github.com/biscolab
7
 * Initial version created on: 28/2/2019
8
 * MIT license: https://github.com/biscolab/laravel-updown/blob/master/LICENSE
9
 */
10
11
namespace Biscolab\LaravelUpDown\Tests;
12
13
use Biscolab\UpDown\Objects\Node;
14
15
/**
16
 * Class UpDownNodeTest
17
 * @package Biscolab\LaravelUpDown\Tests
18
 */
19
class UpDownNodeTest extends TestCase
20
{
21
22
    /**
23
     * @test
24
     */
25
    public function testNodeMethodReturnsNodeObject()
26
    {
27
28
        $this->assertInstanceOf(Node::class, updown()->Node());
0 ignored issues
show
Bug introduced by
The method Node() does not exist on Biscolab\LaravelUpDown\UpDownBuilder. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
        $this->assertInstanceOf(Node::class, updown()->/** @scrutinizer ignore-call */ Node());
Loading history...
29
    }
30
31
    /**
32
     * @return void
33
     */
34
    public function setUp(): void
35
    {
36
37
        parent::setUp(); // TODO: Change the autogenerated stub
38
39
    }
40
}