Passed
Branch master (d01940)
by Daniel
03:53
created

LaravelGmailTest::getEnvironmentSetUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
use Dacastro4\LaravelGmail\Facade\LaravelGmail;
4
use Dacastro4\LaravelGmail\LaravelGmailClass;
5
use Tests\TestCase;
0 ignored issues
show
Bug introduced by
The type Tests\TestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class LaravelGmailTest extends TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
8
{
9
10
	/**
11
	 * @var LaravelGmailClass
12
	 */
13
	public $laravel;
14
15
	protected function getEnvironmentSetUp( $app )
16
	{
17
		$this->laravel = new LaravelGmailClass($app['config']);
18
	}
19
20
	/**
21
	 * @test
22
	 */
23
	public function returns_gmail_authentication_url()
24
	{
25
		$url = $this->laravel->getAuthUrl();
0 ignored issues
show
Unused Code introduced by
The assignment to $url is dead and can be removed.
Loading history...
26
27
	}
28
29
}
30