<?php ob_get_contents(): string|false
<?php ], new Context('abc', time(), 'abc', 'abc')); $this->fail('No exception was thrown'); } catch (Timeout $e) { $logs = ob_get_contents(); self::assertStringContainsString('This is a log message', $logs); } }