Просмотр исходного кода

Restored the $ regex string terminator for the WriteContext test

Derek Clapham 11 лет назад
Родитель
Сommit
89480cdaed
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/Monolog/Handler/SlackHandlerTest.php

+ 1 - 1
tests/Monolog/Handler/SlackHandlerTest.php

@@ -54,7 +54,7 @@ class SlackHandlerTest extends TestCase
         fseek($this->res, 0);
         $content = fread($this->res, 1024);
 
-        $this->assertRegexp('/token=myToken&channel=channel1&username=Monolog&text=&attachments=.*/', $content);
+        $this->assertRegexp('/token=myToken&channel=channel1&username=Monolog&text=&attachments=.*$/', $content);
     }
     
     public function testWriteContentWithEmoji()