mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-11-04 00:46:36 +07:00 
			
		
		
		
	Fix PHPUnit problem matchers
This commit is contained in:
		@ -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
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user