From 8e5cc09df9476e32ce8d33e916fcab0b192ef9c9 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 26 Jan 2020 04:59:20 +0530 Subject: [PATCH] Fix PHPUnit problem matchers --- __tests__/matchers.test.ts | 2 +- src/configs/phpunit.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/matchers.test.ts b/__tests__/matchers.test.ts index 23e74830..1d55d6f0 100644 --- a/__tests__/matchers.test.ts +++ b/__tests__/matchers.test.ts @@ -23,7 +23,7 @@ describe('Matchers', () => { it('Test Regex', async () => { const regex1 = /^\d+\)\s.*$/; - const regex2 = /^(.*)$/; + const regex2 = /^(.*Failed\sasserting\sthat.*)$/; const regex3 = /^\s*$/; const regex4 = /^(.*):(\d+)$/; expect(regex1.test('1) Tests\\Test::it_tests')).toBe(true); diff --git a/src/configs/phpunit.json b/src/configs/phpunit.json index 44b9db6b..2cc9dab1 100644 --- a/src/configs/phpunit.json +++ b/src/configs/phpunit.json @@ -7,7 +7,7 @@ "regexp": "^\\d+\\)\\s.*$" }, { - "regexp": "^(.*)$", + "regexp": "^(.*Failed\\sasserting\\sthat.*)$", "message": 1 }, {