mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Fix PHPUnit problem matchers
This commit is contained in:
parent
f4f8aec1f2
commit
8e5cc09df9
@ -23,7 +23,7 @@ describe('Matchers', () => {
|
|||||||
|
|
||||||
it('Test Regex', async () => {
|
it('Test Regex', async () => {
|
||||||
const regex1 = /^\d+\)\s.*$/;
|
const regex1 = /^\d+\)\s.*$/;
|
||||||
const regex2 = /^(.*)$/;
|
const regex2 = /^(.*Failed\sasserting\sthat.*)$/;
|
||||||
const regex3 = /^\s*$/;
|
const regex3 = /^\s*$/;
|
||||||
const regex4 = /^(.*):(\d+)$/;
|
const regex4 = /^(.*):(\d+)$/;
|
||||||
expect(regex1.test('1) Tests\\Test::it_tests')).toBe(true);
|
expect(regex1.test('1) Tests\\Test::it_tests')).toBe(true);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"regexp": "^\\d+\\)\\s.*$"
|
"regexp": "^\\d+\\)\\s.*$"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regexp": "^(.*)$",
|
"regexp": "^(.*Failed\\sasserting\\sthat.*)$",
|
||||||
"message": 1
|
"message": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user