getSamplesDir()); $this->assertEquals([ 'oat-sa/extension-tao-foobar' => 'taoFooBar', 'oat-sa/extension-tao-taoItemBank' => 'taoItemBank' ], $instance->getAvailableTaoExtensions()); } public function testExtractExtensionDependencies() { $instance = new ComposerInfo($this->getSamplesDir()); $this->assertEquals(['taoItemBank' => '*'], $instance->extractExtensionDependencies()); } public function testGetPackageId() { $instance = new ComposerInfo($this->getSamplesDir()); $this->assertEquals('oat-sa/extension-tao-lightweight', $instance->getPackageId()); } private function getSamplesDir() { return realpath(__DIR__.DIRECTORY_SEPARATOR. '..'.DIRECTORY_SEPARATOR. '..'.DIRECTORY_SEPARATOR. 'samples'. DIRECTORY_SEPARATOR. 'manifests' ); } }