@@ -36,31 +36,31 @@ public function testDumpSortedMessagesAndClean()
3636 {
3737 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' , 'test ' => 'test ' , 'bar ' => 'bar ' ]]);
3838 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true , '--sort ' => 'asc ' ]);
39- $ this ->assertRegExp ("/\*bar\*foo\*test/ " , preg_replace ('/\s+/ ' , '' , $ tester ->getDisplay ()));
40- $ this ->assertRegExp ('/3 messages were successfully extracted/ ' , $ tester ->getDisplay ());
39+ $ this ->assertMatchesRegularExpression ("/\*bar\*foo\*test/ " , preg_replace ('/\s+/ ' , '' , $ tester ->getDisplay ()));
40+ $ this ->assertMatchesRegularExpression ('/3 messages were successfully extracted/ ' , $ tester ->getDisplay ());
4141 }
4242
4343 public function testDumpReverseSortedMessagesAndClean ()
4444 {
4545 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' , 'test ' => 'test ' , 'bar ' => 'bar ' ]]);
4646 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true , '--sort ' => 'desc ' ]);
47- $ this ->assertRegExp ("/\*test\*foo\*bar/ " , preg_replace ('/\s+/ ' , '' , $ tester ->getDisplay ()));
48- $ this ->assertRegExp ('/3 messages were successfully extracted/ ' , $ tester ->getDisplay ());
47+ $ this ->assertMatchesRegularExpression ("/\*test\*foo\*bar/ " , preg_replace ('/\s+/ ' , '' , $ tester ->getDisplay ()));
48+ $ this ->assertMatchesRegularExpression ('/3 messages were successfully extracted/ ' , $ tester ->getDisplay ());
4949 }
5050
5151 public function testDumpSortWithoutValueAndClean ()
5252 {
5353 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' , 'test ' => 'test ' , 'bar ' => 'bar ' ]]);
5454 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true , '--sort ' ]);
55- $ this ->assertRegExp ("/\*bar\*foo\*test/ " , preg_replace ('/\s+/ ' , '' , $ tester ->getDisplay ()));
56- $ this ->assertRegExp ('/3 messages were successfully extracted/ ' , $ tester ->getDisplay ());
55+ $ this ->assertMatchesRegularExpression ("/\*bar\*foo\*test/ " , preg_replace ('/\s+/ ' , '' , $ tester ->getDisplay ()));
56+ $ this ->assertMatchesRegularExpression ('/3 messages were successfully extracted/ ' , $ tester ->getDisplay ());
5757 }
5858
5959 public function testDumpWrongSortAndClean ()
6060 {
6161 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' , 'test ' => 'test ' , 'bar ' => 'bar ' ]]);
6262 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true , '--sort ' => 'test ' ]);
63- $ this ->assertRegExp ('/\[ERROR\] Wrong sort order/ ' , $ tester ->getDisplay ());
63+ $ this ->assertMatchesRegularExpression ('/\[ERROR\] Wrong sort order/ ' , $ tester ->getDisplay ());
6464 }
6565
6666 public function testDumpMessagesAndCleanInRootDirectory ()
@@ -126,7 +126,7 @@ public function testWriteMessagesInLegacyRootDirectory()
126126
127127 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ]]);
128128 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , '--force ' => true ]);
129- $ this ->assertRegExp ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
129+ $ this ->assertMatchesRegularExpression ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
130130 }
131131
132132 public function testWriteMessagesForSpecificDomain ()
0 commit comments