File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -266,10 +266,10 @@ the following code:
266
266
:name: textui.examples.TestCaseClass.php
267
267
268
268
<?php
269
- use PHPUnit\Framework\TestCase;
270
-
271
269
namespace TestNamespace;
272
270
271
+ use PHPUnit\Framework\TestCase;
272
+
273
273
class TestCaseClass extends TestCase
274
274
{
275
275
/**
Original file line number Diff line number Diff line change @@ -485,14 +485,14 @@ See :numref:`writing-tests-for-phpunit.data-providers.examples.DependencyAndData
485
485
return [['provider1'], ['provider2']];
486
486
}
487
487
488
- public function testProducerFirst(): void
488
+ public function testProducerFirst(): string
489
489
{
490
490
$this->assertTrue(true);
491
491
492
492
return 'first';
493
493
}
494
494
495
- public function testProducerSecond(): void
495
+ public function testProducerSecond(): string
496
496
{
497
497
$this->assertTrue(true);
498
498
@@ -558,7 +558,7 @@ See :numref:`writing-tests-for-phpunit.data-providers.examples.DependencyAndData
558
558
$this->assertSame($expected, $a + $b);
559
559
}
560
560
561
- public function additionWithNonNegativeNumbersProvider(): void
561
+ public function additionWithNonNegativeNumbersProvider(): array
562
562
{
563
563
return [
564
564
[0, 1, 1],
You can’t perform that action at this time.
0 commit comments