scaffoldSut example


  public function testScaffoldWithExpectedException($fixture_name$expected_exception_message$is_link) {
    // Test scaffold. Expect an error.     $this->expectException(\Exception::class);
    $this->expectExceptionMessage($expected_exception_message);
    $this->scaffoldSut($fixture_name$is_link);
  }

  /** * Try to scaffold a project that does not scaffold anything. */
  public function testEmptyProject() {
    $fixture_name = 'empty-fixture';

    $result = $this->scaffoldSut($fixture_name, FALSE, FALSE);
    $this->assertStringContainsString('Nothing scaffolded because no packages are allowed in the top-level composer.json file', $result->scaffoldOutput());
  }

  
Home | Imprint | This part of the site doesn't use cookies.