mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-23979 prevent logging of intentional errors when fetching feeds
This commit is contained in:
parent
43ba7a54c2
commit
a9eac775bd
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ EOD;
|
|||
* Test retrieving a url which doesn't exist
|
||||
*/
|
||||
function test_failurl() {
|
||||
$feed = new moodle_simplepie(moodlesimplepie_test::INVALIDURL);
|
||||
$feed = @new moodle_simplepie(moodlesimplepie_test::INVALIDURL); // we do not want this in php error log
|
||||
|
||||
$this->assertTrue($feed->error());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue