Forráskód Böngészése

Restored the $ regex string terminator for the WriteContext test

Derek Clapham 11 éve
szülő
commit
89480cdaed
1 módosított fájl, 1 hozzáadás és 1 törlés
  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()