mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
suppress error_log output of GoogleCloudStorage class in unit testing
This commit is contained in:
parent
93138cbbae
commit
ffe48092fe
|
@ -34,6 +34,7 @@ class GoogleCloudStorageTest extends PHPUnit_Framework_TestCase
|
||||||
// do not report E_NOTICE as fsouza/fake-gcs-server does not return a `generation` value in the response
|
// do not report E_NOTICE as fsouza/fake-gcs-server does not return a `generation` value in the response
|
||||||
// which the Google Cloud Storage PHP library expects.
|
// which the Google Cloud Storage PHP library expects.
|
||||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||||
|
ini_set('error_log', stream_get_meta_data(tmpfile())['uri']);
|
||||||
$this->_model = GoogleCloudStorage::getInstance(array(
|
$this->_model = GoogleCloudStorage::getInstance(array(
|
||||||
'bucket' => self::$_bucket->name(),
|
'bucket' => self::$_bucket->name(),
|
||||||
'prefix' => 'pastes',
|
'prefix' => 'pastes',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user