Skip to content

Commit abd4787

Browse files
authored
Removed hard coded Menlo font from dd source file (#44331)
1 parent e776e64 commit abd4787

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Illuminate/Foundation/Http/HtmlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function getDumpSourceContent()
132132
);
133133
}
134134

135-
return sprintf('<span style="color: #A0A0A0; font-family: Menlo"> // %s</span>', $source);
135+
return sprintf('<span style="color: #A0A0A0;"> // %s</span>', $source);
136136
}
137137

138138
/**

tests/Foundation/Http/HtmlDumperTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testString()
2525
{
2626
$output = $this->dump('string');
2727

28-
$expected = "string</span>\"<span style=\"color: #A0A0A0; font-family: Menlo\"> // app/routes/console.php:18</span>\n</pre>";
28+
$expected = "string</span>\"<span style=\"color: #A0A0A0;\"> // app/routes/console.php:18</span>\n</pre>";
2929

3030
$this->assertStringContainsString($expected, $output);
3131
}
@@ -34,7 +34,7 @@ public function testInteger()
3434
{
3535
$output = $this->dump(1);
3636

37-
$expected = "1</span><span style=\"color: #A0A0A0; font-family: Menlo\"> // app/routes/console.php:18</span>\n</pre>";
37+
$expected = "1</span><span style=\"color: #A0A0A0;\"> // app/routes/console.php:18</span>\n</pre>";
3838

3939
$this->assertStringContainsString($expected, $output);
4040
}
@@ -43,7 +43,7 @@ public function testFloat()
4343
{
4444
$output = $this->dump(1.1);
4545

46-
$expected = "1.1</span><span style=\"color: #A0A0A0; font-family: Menlo\"> // app/routes/console.php:18</span>\n</pre>";
46+
$expected = "1.1</span><span style=\"color: #A0A0A0;\"> // app/routes/console.php:18</span>\n</pre>";
4747

4848
$this->assertStringContainsString($expected, $output);
4949
}
@@ -52,7 +52,7 @@ public function testArray()
5252
{
5353
$output = $this->dump(['string', 1, 1.1, ['string', 1, 1.1]]);
5454

55-
$expected = '<samp data-depth=1 class=sf-dump-expanded><span style="color: #A0A0A0; font-family: Menlo"> // app/routes/console.php:18</span>';
55+
$expected = '<samp data-depth=1 class=sf-dump-expanded><span style="color: #A0A0A0;"> // app/routes/console.php:18</span>';
5656

5757
$this->assertStringContainsString($expected, $output);
5858
}
@@ -61,7 +61,7 @@ public function testBoolean()
6161
{
6262
$output = $this->dump(true);
6363

64-
$expected = "true</span><span style=\"color: #A0A0A0; font-family: Menlo\"> // app/routes/console.php:18</span>\n</pre>";
64+
$expected = "true</span><span style=\"color: #A0A0A0;\"> // app/routes/console.php:18</span>\n</pre>";
6565

6666
$this->assertStringContainsString($expected, $output);
6767
}
@@ -73,7 +73,7 @@ public function testObject()
7373

7474
$output = $this->dump($user);
7575

76-
$expected = '<samp data-depth=1 class=sf-dump-expanded><span style="color: #A0A0A0; font-family: Menlo"> // app/routes/console.php:18</span>';
76+
$expected = '<samp data-depth=1 class=sf-dump-expanded><span style="color: #A0A0A0;"> // app/routes/console.php:18</span>';
7777

7878
$this->assertStringContainsString($expected, $output);
7979
}
@@ -82,7 +82,7 @@ public function testNull()
8282
{
8383
$output = $this->dump(null);
8484

85-
$expected = "null</span><span style=\"color: #A0A0A0; font-family: Menlo\"> // app/routes/console.php:18</span>\n</pre>";
85+
$expected = "null</span><span style=\"color: #A0A0A0;\"> // app/routes/console.php:18</span>\n</pre>";
8686

8787
$this->assertStringContainsString($expected, $output);
8888
}

0 commit comments

Comments
 (0)