Skip to content

Commit d81f43f

Browse files
committed
Merge branch '4.0'
* 4.0: [Console] Add placeholder for line number in console exception fixtures fix HHVM tests minor symfony#25752 Don't right trim the deprecation message (alexpott)
2 parents 3081bdf + ce35073 commit d81f43f

7 files changed

+14
-14
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,10 +727,10 @@ public function testRenderExceptionWithDoubleWidthCharacters()
727727
$tester = new ApplicationTester($application);
728728

729729
$tester->run(array('command' => 'foo'), array('decorated' => false, 'capture_stderr_separately' => true));
730-
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth1.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
730+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth1.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
731731

732732
$tester->run(array('command' => 'foo'), array('decorated' => true, 'capture_stderr_separately' => true));
733-
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth1decorated.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
733+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth1decorated.txt', $tester->getErrorOutput(true), '->renderException() renders a pretty exceptions with previous exceptions');
734734

735735
$application = new Application();
736736
$application->setAutoExit(false);
@@ -740,7 +740,7 @@ public function testRenderExceptionWithDoubleWidthCharacters()
740740
});
741741
$tester = new ApplicationTester($application);
742742
$tester->run(array('command' => 'foo'), array('decorated' => false, 'capture_stderr_separately' => true));
743-
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth2.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
743+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_doublewidth2.txt', $tester->getErrorOutput(true), '->renderException() wraps messages when they are bigger than the terminal');
744744
putenv('COLUMNS=120');
745745
}
746746

@@ -755,7 +755,7 @@ public function testRenderExceptionEscapesLines()
755755
$tester = new ApplicationTester($application);
756756

757757
$tester->run(array('command' => 'foo'), array('decorated' => false));
758-
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_escapeslines.txt', $tester->getDisplay(true), '->renderException() escapes lines containing formatting');
758+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_escapeslines.txt', $tester->getDisplay(true), '->renderException() escapes lines containing formatting');
759759
putenv('COLUMNS=120');
760760
}
761761

@@ -772,7 +772,7 @@ public function testRenderExceptionLineBreaks()
772772
$tester = new ApplicationTester($application);
773773

774774
$tester->run(array('command' => 'foo'), array('decorated' => false));
775-
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_linebreaks.txt', $tester->getDisplay(true), '->renderException() keep multiple line breaks');
775+
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/application_renderexception_linebreaks.txt', $tester->getDisplay(true), '->renderException() keep multiple line breaks');
776776
}
777777

778778
public function testRun()

src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
In ApplicationTest.php line 725:
2+
In ApplicationTest.php line %d:
33

44
エラーメッセージ
55

src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
In ApplicationTest.php line 725:
2+
In ApplicationTest.php line %d:
33
 
44
 エラーメッセージ 
55
 

src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
In ApplicationTest.php line 739:
2+
In ApplicationTest.php line %d:
33

44
コマンドの実行中にエラーが
55
発生しました。

src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_escapeslines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
In ApplicationTest.php line 753:
2+
In ApplicationTest.php line %d:
33

44
dont break here <
55
info>!</info>

src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_linebreaks.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
In ApplicationTest.php line 770:
2+
In ApplicationTest.php line %d:
33

44
line 1 with extra spaces
55
line 2

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ public function testGetLocale()
5252

5353
public function testGetUser()
5454
{
55-
$request = Request::create('http://user_test:password_test@test.com/');
55+
$request = Request::create('http://user:password@test.com');
5656
$user = $request->getUser();
5757

58-
$this->assertEquals('user_test', $user);
58+
$this->assertEquals('user', $user);
5959
}
6060

6161
public function testGetPassword()
6262
{
63-
$request = Request::create('http://user_test:password_test@test.com/');
63+
$request = Request::create('http://user:password@test.com');
6464
$password = $request->getPassword();
6565

66-
$this->assertEquals('password_test', $password);
66+
$this->assertEquals('password', $password);
6767
}
6868

6969
public function testIsNoCache()

0 commit comments

Comments
 (0)