We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c1b3e commit 8d776d0Copy full SHA for 8d776d0
1 file changed
tests/Output/WriterTest.php
@@ -122,6 +122,15 @@ public function test_justify()
122
{
123
$w = new Writer(static::$ou);
124
125
+ $terminal = $this->createMock(Terminal::class);
126
+ $terminal->expects($this->once())
127
+ ->method('width')
128
+ ->willReturn(80);
129
+
130
+ $reflection = new \ReflectionProperty(Writer::class, 'terminal');
131
+ $reflection->setAccessible(true);
132
+ $reflection->setValue($w, $terminal);
133
134
$w->justify('PHP Version', PHP_VERSION, [
135
'sep' => '-',
136
]);
0 commit comments