mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-20 11:51:32 +02:00
Add LogRecord class, drop PHP <8.1
This commit is contained in:
@@ -45,7 +45,7 @@ class FlowdockHandlerTest extends TestCase
|
||||
fseek($this->res, 0);
|
||||
$content = fread($this->res, 1024);
|
||||
|
||||
$this->assertRegexp('/POST \/v1\/messages\/team_inbox\/.* HTTP\/1.1\\r\\nHost: api.flowdock.com\\r\\nContent-Type: application\/json\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
|
||||
$this->assertMatchesRegularExpression('/POST \/v1\/messages\/team_inbox\/.* HTTP\/1.1\\r\\nHost: api.flowdock.com\\r\\nContent-Type: application\/json\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
@@ -55,8 +55,8 @@ class FlowdockHandlerTest extends TestCase
|
||||
*/
|
||||
public function testWriteContent($content)
|
||||
{
|
||||
$this->assertRegexp('/"source":"test_source"/', $content);
|
||||
$this->assertRegexp('/"from_address":"source@test\.com"/', $content);
|
||||
$this->assertMatchesRegularExpression('/"source":"test_source"/', $content);
|
||||
$this->assertMatchesRegularExpression('/"from_address":"source@test\.com"/', $content);
|
||||
}
|
||||
|
||||
private function createHandler($token = 'myToken')
|
||||
|
Reference in New Issue
Block a user