Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 16 |
Ratio | 100 % |
1 | <?php |
||
11 | View Code Duplication | public function setUp() |
|
12 | { |
||
13 | parent::setUp(); |
||
14 | |||
15 | $this->console = m::mock('Spatie\Backup\Console'); |
||
16 | |||
17 | $this->database = new PgSQLDatabase( |
||
18 | $this->console, |
||
19 | 'testDatabase', |
||
20 | 'public', |
||
21 | 'testUser', |
||
22 | 'password', |
||
23 | 'localhost', |
||
24 | '5432' |
||
25 | ); |
||
26 | } |
||
27 | |||
60 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.