function ComposerIntegrationTest::testWindowsAbsoluteBinDir

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Composer/ComposerIntegrationTest.php \Drupal\Tests\Composer\ComposerIntegrationTest::testWindowsAbsoluteBinDir()

Tests that a Windows-style absolute bin-dir is returned unchanged.

File

core/tests/Drupal/Tests/Composer/ComposerIntegrationTest.php, line 132

Class

ComposerIntegrationTest
Tests Composer integration.

Namespace

Drupal\Tests\Composer

Code

public function testWindowsAbsoluteBinDir() : void {
  $root = $this->createProjectRoot([
    'config' => [
      'bin-dir' => 'C:\\project\\bin',
    ],
  ]);
  $this->assertSame('C:\\project\\bin', self::binDir($root));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.