createTasks example

/** * @covers ::minimumVersion * @covers ::name * @dataProvider providerNameAndMinimumVersion */
  public function testNameAndMinimumVersion(bool $is_mariadb, string $expected_name, string $expected_minimum_version): void {
    $this->connection
      ->isMariaDb()
      ->shouldBeCalledTimes(2)
      ->willReturn($is_mariadb);
    $tasks = $this->createTasks();

    $minimum_version = $tasks->minimumVersion();
    $name = $tasks->name();

    $this->assertSame($expected_minimum_version$minimum_version);
    $this->assertSame($expected_name$name);

  }

  /** * Provides test data. * * @return array */
Home | Imprint | This part of the site doesn't use cookies.