Completed
Push — stable ( 26596e...cda223 )
by Nuno
02:59
created

Installer::install()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 25
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 25
ccs 6
cts 6
cp 1
rs 8.8571
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * This file is part of Laravel Zero.
5
 *
6
 * (c) Nuno Maduro <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace LaravelZero\Framework\Components\ConsoleDusk;
13
14
use LaravelZero\Framework\Components\AbstractInstaller;
15
16
/**
17
 * This is the Laravel Zero Framework Console Dusk Component Installer Implementation.
18
 */
19
class Installer extends AbstractInstaller
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected $name = 'install:console-dusk';
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected $description = 'Installs nunomaduro/laravel-console-dusk';
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 1
    public function install(): void
35
    {
36 1
        $this->require('nunomaduro/laravel-console-dusk');
37
38 1
        $this->info('Usage:');
39 1
        $this->comment(
40 1
            '
41
class VisitLaravelZeroCommand extends Command
42
{
43
    /**
44
     * Execute the console command.
45
     *
46
     * @return void
47
     */
48
    public function handle()
49
    {
50
        $this->browse(function ($browser) {
51
            $browser->visit("http://laravel-zero.com")
52
                ->assertSee("Collision");
53
        });
54
    }
55
}
56
'
57
        );
58 1
    }
59
}
60