getLogEntriesByTestClass example

1 => (object) [
        'message_id' => 1,
        'test_id' => 1,
        'test_class' => 'Test\PlanetEarth',
        'status' => 'pass',
        'message' => 'Major Tom',
        'message_group' => 'other',
        'function' => 'Unknown',
        'line' => 0,
        'file' => 'Unknown',
      ],
    ]$this->testRunResultsStorage->getLogEntriesByTestClass($test_run));
  }

  /** * Returns a sample test run log entry. * * @param string $test_class * The test class. * * @return string[] * An array with the elements to be logged. */
  
$this->testClass = $entry['test_class'];
    return $this->testRunResultsStorage->insertLogEntry($this$entry);
  }

  /** * Get test results for a test run, ordered by test class. * * @return array * Array of results ordered by test class and message id. */
  public function getLogEntriesByTestClass(): array {
    return $this->testRunResultsStorage->getLogEntriesByTestClass($this);
  }

  /** * Removes the test results from the storage. * * @return int * The number of log entries that were removed from storage. */
  public function removeResults(): int {
    return $this->testRunResultsStorage->removeResults($this);
  }

  
1 => (object) [
        'message_id' => 1,
        'test_id' => 1,
        'test_class' => 'Test\PlanetEarth',
        'status' => 'pass',
        'message' => 'Major Tom',
        'message_group' => 'other',
        'function' => 'Unknown',
        'line' => 0,
        'file' => 'Unknown',
      ],
    ]$test_run->getLogEntriesByTestClass());
    $this->assertEquals('oddity1234', $test_run->getDatabasePrefix());
    $this->assertEquals('Test\GroundControl', $test_run->getTestClass());
  }

  /** * @covers ::createNew * @covers ::setDatabasePrefix * @covers ::processPhpErrorLogFile * @covers ::getLogEntriesByTestClass */
  public function testProcessPhpErrorLogFile(): void {
    
Home | Imprint | This part of the site doesn't use cookies.