|
@@ 22-32 (lines=11) @@
|
| 19 |
|
*/ |
| 20 |
|
class TestResultFactoryTest extends BaseUnitTestCase |
| 21 |
|
{ |
| 22 |
|
public function testCreateFromLogMuteWithoutTestName() |
| 23 |
|
{ |
| 24 |
|
$log = new \stdClass(); |
| 25 |
|
$log->event = 'test'; |
| 26 |
|
|
| 27 |
|
$factory = new TestResultFactory(); |
| 28 |
|
$result = $factory->createFromLog($log); |
| 29 |
|
|
| 30 |
|
$this->assertInstanceOf(MuteTestResult::class, $result); |
| 31 |
|
$this->assertInstanceOf(TestResultFormat::class, $result->getTestResultFormat()); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function testCreateFromLogMute() |
| 35 |
|
{ |
|
@@ 34-45 (lines=12) @@
|
| 31 |
|
$this->assertInstanceOf(TestResultFormat::class, $result->getTestResultFormat()); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function testCreateFromLogMute() |
| 35 |
|
{ |
| 36 |
|
$log = new \stdClass(); |
| 37 |
|
$log->test = 'testFunction()'; |
| 38 |
|
$log->event = 'test'; |
| 39 |
|
|
| 40 |
|
$factory = new TestResultFactory(); |
| 41 |
|
$result = $factory->createFromLog($log); |
| 42 |
|
|
| 43 |
|
$this->assertInstanceOf(MuteTestResult::class, $result); |
| 44 |
|
$this->assertInstanceOf(TestResultFormat::class, $result->getTestResultFormat()); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
public function testCreateFromLogWithMessage() |
| 48 |
|
{ |