Skip to content

Commit af4497b

Browse files
committed
Remove unnecessary comments
1 parent 7e2958a commit af4497b

File tree

4 files changed

+1
-116
lines changed

4 files changed

+1
-116
lines changed

tests/DbgTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,18 @@
1616
*/
1717
class DbgTest extends \PHPUnit\Framework\TestCase
1818
{
19-
/**
20-
* Test printing number.
21-
*
22-
* @return void
23-
*/
2419
public function testPrintNumber()
2520
{
2621
$var = 123;
2722
$this->assertEquals('123', $this->captureOutput($var));
2823
}
2924

30-
/**
31-
* Test printing string.
32-
*
33-
* @return void
34-
*/
3525
public function testPrintString()
3626
{
3727
$var = 'some string';
3828
$this->assertEquals($var, $this->captureOutput($var));
3929
}
4030

41-
/**
42-
* Test printing output.
43-
*
44-
* @return void
45-
*/
4631
public function testPrintArray()
4732
{
4833
$var = ['first', 'second', 'third'];
@@ -58,11 +43,6 @@ public function testPrintArray()
5843
$this->assertEquals($expected, $this->captureOutput($var));
5944
}
6045

61-
/**
62-
* Test printing output in non-CLI environment.
63-
*
64-
* @return void
65-
*/
6646
public function testPrintArrayNonCli()
6747
{
6848
TestDebug::init();

tests/DbgThrowTest.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,19 @@
1818
*/
1919
class DbgThrowTest extends \PHPUnit\Framework\TestCase
2020
{
21-
/**
22-
* Test printing number.
23-
*
24-
* @return void
25-
*/
2621
public function testThrowNumber()
2722
{
2823
$var = 123;
2924
$this->assertEquals($var, $this->captureException($var));
3025
}
3126

32-
/**
33-
* Test printing string.
34-
*
35-
* @return void
36-
*/
3727
public function testThrowString()
3828
{
3929
$var = 'some string';
4030
$this->assertEquals($var, $this->captureException($var));
4131
}
4232

43-
/**
44-
* Test printing output.
45-
*
46-
* @return void
47-
*/
48-
public function testPrintArray()
33+
public function testThrowArray()
4934
{
5035
$var = ['first', 'second', 'third'];
5136
$expected = <<<'EOT'

tests/DbglogTest.php

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
*/
2020
class DbglogTest extends \PHPUnit\Framework\TestCase
2121
{
22-
/**
23-
* Test printing number with log file.
24-
*
25-
* @return void
26-
*/
2722
public function testLogNumberWithLogFile()
2823
{
2924
$logfile = TestHelper::createTempFile();
@@ -40,11 +35,6 @@ public function testLogNumberWithLogFile()
4035
);
4136
}
4237

43-
/**
44-
* Test printing string with log file.
45-
*
46-
* @return void
47-
*/
4838
public function testLogStringWithLogFile()
4939
{
5040
$logfile = TestHelper::createTempFile();
@@ -61,11 +51,6 @@ public function testLogStringWithLogFile()
6151
);
6252
}
6353

64-
/**
65-
* Test printing output with log file.
66-
*
67-
* @return void
68-
*/
6954
public function testLogArrayWithLogFile()
7055
{
7156
$logfile = TestHelper::createTempFile();
@@ -91,11 +76,6 @@ public function testLogArrayWithLogFile()
9176
);
9277
}
9378

94-
/**
95-
* Test printing data with no log file.
96-
*
97-
* @return void
98-
*/
9979
public function testLogWithNoLogFile()
10080
{
10181
$logfile = TestHelper::createTempFile();
@@ -109,11 +89,6 @@ public function testLogWithNoLogFile()
10989
$this->assertEmpty(file_get_contents($logfile));
11090
}
11191

112-
/**
113-
* Test printing number with logger.
114-
*
115-
* @return void
116-
*/
11792
public function testLogNumberWithLogger()
11893
{
11994
$fp = tmpfile();
@@ -131,11 +106,6 @@ public function testLogNumberWithLogger()
131106
);
132107
}
133108

134-
/**
135-
* Test printing string with logger.
136-
*
137-
* @return void
138-
*/
139109
public function testLogStringWithLogger()
140110
{
141111
$fp = tmpfile();
@@ -153,11 +123,6 @@ public function testLogStringWithLogger()
153123
);
154124
}
155125

156-
/**
157-
* Test printing output with logger.
158-
*
159-
* @return void
160-
*/
161126
public function testLogArrayWithLogger()
162127
{
163128
$fp = tmpfile();
@@ -184,11 +149,6 @@ public function testLogArrayWithLogger()
184149
);
185150
}
186151

187-
/**
188-
* Test printing data with custom date format.
189-
*
190-
* @return void
191-
*/
192152
public function testLogWithLoggerAndCustomDateFormat()
193153
{
194154
$fp = tmpfile();
@@ -207,11 +167,6 @@ public function testLogWithLoggerAndCustomDateFormat()
207167
);
208168
}
209169

210-
/**
211-
* Test printing data with no logger.
212-
*
213-
* @return void
214-
*/
215170
public function testLogWithNoLogger()
216171
{
217172
$fp = tmpfile();

tests/DbgrTest.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,18 @@
1818
*/
1919
class DbgrTest extends \PHPUnit\Framework\TestCase
2020
{
21-
/**
22-
* Test number output.
23-
*
24-
* @return void
25-
*/
2621
public function testDebugNumber()
2722
{
2823
$var = 123;
2924
$this->assertSame('123', dbgr($var));
3025
}
3126

32-
/**
33-
* Test string output.
34-
*
35-
* @return void
36-
*/
3727
public function testDebugString()
3828
{
3929
$var = 'some string';
4030
$this->assertSame($var, dbgr($var));
4131
}
4232

43-
/**
44-
* Test array output.
45-
*
46-
* @return void
47-
*/
4833
public function testDebugArray()
4934
{
5035
$var = ['first', 'second', 'third'];
@@ -60,11 +45,6 @@ public function testDebugArray()
6045
$this->assertEquals($expected, dbgr($var));
6146
}
6247

63-
/**
64-
* Test string output setting vardump by init.
65-
*
66-
* @return void
67-
*/
6848
public function testDebugStringUsingVardumpByInit()
6949
{
7050
dbginit(['use_vardump' => true]);
@@ -75,11 +55,6 @@ public function testDebugStringUsingVardumpByInit()
7555
);
7656
}
7757

78-
/**
79-
* Test string output setting vardump by argument.
80-
*
81-
* @return void
82-
*/
8358
public function testDebugStringUsingVardumpByArg()
8459
{
8560
$var = 'Some Third String';
@@ -89,23 +64,13 @@ public function testDebugStringUsingVardumpByArg()
8964
);
9065
}
9166

92-
/**
93-
* Test string output setting htmlentities by init.
94-
*
95-
* @return void
96-
*/
9767
public function testDebugStringUsingHtmlentitiesByInit()
9868
{
9969
dbginit(['use_htmlentities' => true]);
10070
$var = '<b>Header<b>';
10171
$this->assertSame(htmlentities($var), dbgr($var));
10272
}
10373

104-
/**
105-
* Test string output setting htmlentities by argument.
106-
*
107-
* @return void
108-
*/
10974
public function testDebugStringUsingHtmlentitiesByArg()
11075
{
11176
$var = '<b>Footer<b>';

0 commit comments

Comments
 (0)