mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Use stdout instead of stderror for notices
This commit is contained in:
parent
35bd86bf93
commit
6f9352cac4
@ -148,7 +148,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
*/
|
*/
|
||||||
protected function bootstrap($frameworkPath)
|
protected function bootstrap($frameworkPath)
|
||||||
{
|
{
|
||||||
file_put_contents('php://stderr', 'Bootstrapping' . PHP_EOL);
|
file_put_contents('php://stdout', 'Bootstrapping' . PHP_EOL);
|
||||||
|
|
||||||
// Connect to database and build manifest
|
// Connect to database and build manifest
|
||||||
$_GET['flush'] = 1;
|
$_GET['flush'] = 1;
|
||||||
@ -162,7 +162,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
protected function initializeTempDb()
|
protected function initializeTempDb()
|
||||||
{
|
{
|
||||||
$dbname = \SapphireTest::create_temp_db();
|
$dbname = \SapphireTest::create_temp_db();
|
||||||
file_put_contents('php://stderr', "Creating temp DB $dbname" . PHP_EOL);
|
file_put_contents('php://stdout', "Creating temp DB $dbname" . PHP_EOL);
|
||||||
\DB::set_alternative_database_name($dbname);
|
\DB::set_alternative_database_name($dbname);
|
||||||
|
|
||||||
return $dbname;
|
return $dbname;
|
||||||
@ -170,7 +170,7 @@ class SilverStripeAwareInitializer implements InitializerInterface
|
|||||||
|
|
||||||
protected function deleteTempDb()
|
protected function deleteTempDb()
|
||||||
{
|
{
|
||||||
file_put_contents('php://stderr', "Killing temp DB" . PHP_EOL);
|
file_put_contents('php://stdout', "Killing temp DB" . PHP_EOL);
|
||||||
\SapphireTest::kill_temp_db();
|
\SapphireTest::kill_temp_db();
|
||||||
\DB::set_alternative_database_name(null);
|
\DB::set_alternative_database_name(null);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user