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

Installer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 41
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B install() 0 25 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