GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

testFormConstructorCreatesAllItems()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
namespace RbCommentTest\Form;
3
4
use RbComment\Form\CommentForm;
5
use PHPUnit_Framework_TestCase;
6
7
class CommentFormTest extends PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $formStrings = [
13
        'author'  => 'author',
14
        'contact' => 'contact',
15
        'content' => 'content',
16
        'submit'  => 'submit',
17
    ];
18
19
    public function testFormConstructorCreatesAllItems()
20
    {
21
        $commentForm = new CommentForm($this->formStrings);
22
23
        $this->assertTrue($commentForm->has('csrf'));
24
        $this->assertTrue($commentForm->has('id'));
25
        $this->assertTrue($commentForm->has('thread'));
26
        $this->assertTrue($commentForm->has('uri'));
27
        $this->assertTrue($commentForm->has('author'));
28
        $this->assertTrue($commentForm->has('contact'));
29
        $this->assertTrue($commentForm->has('content'));
30
        $this->assertTrue($commentForm->has('submit'));
31
    }
32
33
    public function testFormAttributesAreSet()
34
    {
35
        $commentForm = new CommentForm($this->formStrings);
36
37
        $this->assertEquals('post', $commentForm->getAttribute('method'));
38
        $this->assertEquals('/rbcomment/add', $commentForm->getAttribute('action'));
39
    }
40
}
41