@@ -27,8 +27,8 @@ public function testDumpMessagesAndClean()
2727 {
2828 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ]]);
2929 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true ]);
30- $ this ->assertRegExp ('/foo/ ' , $ tester ->getDisplay ());
31- $ this ->assertRegExp ('/1 message was successfully extracted/ ' , $ tester ->getDisplay ());
30+ $ this ->assertMatchesRegularExpression ('/foo/ ' , $ tester ->getDisplay ());
31+ $ this ->assertMatchesRegularExpression ('/1 message was successfully extracted/ ' , $ tester ->getDisplay ());
3232 }
3333
3434 public function testDumpMessagesAndCleanInRootDirectory ()
@@ -40,32 +40,32 @@ public function testDumpMessagesAndCleanInRootDirectory()
4040
4141 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ]]);
4242 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , '--dump-messages ' => true , '--clean ' => true ]);
43- $ this ->assertRegExp ('/foo/ ' , $ tester ->getDisplay ());
44- $ this ->assertRegExp ('/1 message was successfully extracted/ ' , $ tester ->getDisplay ());
43+ $ this ->assertMatchesRegularExpression ('/foo/ ' , $ tester ->getDisplay ());
44+ $ this ->assertMatchesRegularExpression ('/1 message was successfully extracted/ ' , $ tester ->getDisplay ());
4545 }
4646
4747 public function testDumpTwoMessagesAndClean ()
4848 {
4949 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' , 'bar ' => 'bar ' ]]);
5050 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true ]);
51- $ this ->assertRegExp ('/foo/ ' , $ tester ->getDisplay ());
52- $ this ->assertRegExp ('/bar/ ' , $ tester ->getDisplay ());
53- $ this ->assertRegExp ('/2 messages were successfully extracted/ ' , $ tester ->getDisplay ());
51+ $ this ->assertMatchesRegularExpression ('/foo/ ' , $ tester ->getDisplay ());
52+ $ this ->assertMatchesRegularExpression ('/bar/ ' , $ tester ->getDisplay ());
53+ $ this ->assertMatchesRegularExpression ('/2 messages were successfully extracted/ ' , $ tester ->getDisplay ());
5454 }
5555
5656 public function testDumpMessagesForSpecificDomain ()
5757 {
5858 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ], 'mydomain ' => ['bar ' => 'bar ' ]]);
5959 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--dump-messages ' => true , '--clean ' => true , '--domain ' => 'mydomain ' ]);
60- $ this ->assertRegExp ('/bar/ ' , $ tester ->getDisplay ());
61- $ this ->assertRegExp ('/1 message was successfully extracted/ ' , $ tester ->getDisplay ());
60+ $ this ->assertMatchesRegularExpression ('/bar/ ' , $ tester ->getDisplay ());
61+ $ this ->assertMatchesRegularExpression ('/1 message was successfully extracted/ ' , $ tester ->getDisplay ());
6262 }
6363
6464 public function testWriteMessages ()
6565 {
6666 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ]]);
6767 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--force ' => true ]);
68- $ this ->assertRegExp ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
68+ $ this ->assertMatchesRegularExpression ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
6969 }
7070
7171 public function testWriteMessagesInRootDirectory ()
@@ -77,14 +77,14 @@ public function testWriteMessagesInRootDirectory()
7777
7878 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ]]);
7979 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , '--force ' => true ]);
80- $ this ->assertRegExp ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
80+ $ this ->assertMatchesRegularExpression ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
8181 }
8282
8383 public function testWriteMessagesForSpecificDomain ()
8484 {
8585 $ tester = $ this ->createCommandTester (['messages ' => ['foo ' => 'foo ' ], 'mydomain ' => ['bar ' => 'bar ' ]]);
8686 $ tester ->execute (['command ' => 'translation:update ' , 'locale ' => 'en ' , 'bundle ' => 'foo ' , '--force ' => true , '--domain ' => 'mydomain ' ]);
87- $ this ->assertRegExp ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
87+ $ this ->assertMatchesRegularExpression ('/Translation files were successfully updated./ ' , $ tester ->getDisplay ());
8888 }
8989
9090 protected function setUp ()
0 commit comments