Completed
Pull Request — master (#1)
by Jason
03:32
created

ImageUploadFieldTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test__construct() 0 5 1
1
<?php
2
3
class ImageUploadFieldTest extends SapphireTest
4
{
5
    public function test__construct()
0 ignored issues
show
Coding Style introduced by
Method name "ImageUploadFieldTest::test__construct" is not in camel caps format
Loading history...
6
    {
7
        $field = new ImageUploadField('Image');
8
        $this->assertInstanceOf('UploadField', $field);
1 ignored issue
show
Bug introduced by
The method assertInstanceOf() does not seem to exist on object<ImageUploadFieldTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
9
    }
10
}
11