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.
Completed
Push — master ( 7392c7...89a30b )
by Sebastian
02:06
created

DocumentSpec::it_returns_the_body()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace spec\Spatie\YamlFrontMatter;
4
5
use PhpSpec\ObjectBehavior;
6
use Spatie\YamlFrontMatter\Document;
7
8
class DocumentSpec extends ObjectBehavior
9
{
10
    public function let()
11
    {
12
        $this->beConstructedWith(
13
            [
14
                'title' => 'Front Matter',
15
                'meta' => ['date' => '01/02/1992']
16
            ],
17
            'Hello world!'
18
        );
19
    }
20
21
    public function it_is_initializable()
22
    {
23
        $this->shouldHaveType(Document::class);
24
    }
25
26
    public function it_returns_all_front_matter()
27
    {
28
        $this->matter()->shouldHaveKeyWithValue('title', 'Front Matter');
29
        $this->matter()->shouldHaveKeyWithValue('meta', ['date' => '01/02/1992']);
30
    }
31
32
    public function it_returns_specific_front_matter()
33
    {
34
        $this->matter('title')->shouldBe('Front Matter');
35
    }
36
37
    public function it_returns_nested_specific_front_matter()
38
    {
39
        $this->matter('meta.date')->shouldBe('01/02/1992');
40
    }
41
42
    public function it_can_fall_back_to_a_default_for_front_matter()
43
    {
44
        $this->matter('keywords', 'technology')->shouldBe('technology');
45
    }
46
47
    public function it_returns_the_body()
48
    {
49
        $this->body()->shouldBe('Hello world!');
50
    }
51
}
52