| @@ 11-26 (lines=16) @@ | ||
| 8 | protected $console; |
|
| 9 | protected $database; |
|
| 10 | ||
| 11 | public function setUp() |
|
| 12 | { |
|
| 13 | parent::setUp(); |
|
| 14 | ||
| 15 | $this->console = m::mock('Spatie\Backup\Console'); |
|
| 16 | ||
| 17 | $this->database = new MySQLDatabase( |
|
| 18 | $this->console, |
|
| 19 | 'testDatabase', |
|
| 20 | 'testUser', |
|
| 21 | 'password', |
|
| 22 | 'localhost', |
|
| 23 | '3306', |
|
| 24 | '/var/run/mysqld/mysqld.sock' |
|
| 25 | ); |
|
| 26 | } |
|
| 27 | ||
| 28 | public function tearDown() |
|
| 29 | { |
|
| @@ 11-26 (lines=16) @@ | ||
| 8 | protected $console; |
|
| 9 | protected $database; |
|
| 10 | ||
| 11 | 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 | ||
| 28 | public function tearDown() |
|
| 29 | { |
|