-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phar xmlns="https://phar.io/xml/manifest/1.0"> | ||
<contains name="bmitch/churn-php" version="dev-master" type="application" /> | ||
<contains name="bmitch/churn-php" version="0.0.0-dev" type="application" /> | ||
<copyright> | ||
<author name="Bill Mitchell" email="[email protected]"/> | ||
<license type="MIT" url="https://github.com/bmitch/churn-php/blob/master/LICENSE.md"/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Churn\Tests\Integration; | ||
|
||
use Churn\Tests\BaseTestCase; | ||
use PharIo\Manifest\ManifestLoader; | ||
|
||
class ManifestTest extends BaseTestCase | ||
{ | ||
/** @test */ | ||
public function manifest_is_valid() | ||
{ | ||
$path = __DIR__ . '/../../manifest.xml'; | ||
$this->assertTrue(is_file($path), 'manifest.xml not found'); | ||
|
||
$manifest = ManifestLoader::fromFile($path); | ||
|
||
$name = method_exists($manifest->getName(), 'asString') ? $manifest->getName()->asString() : (string) $manifest->getName(); | ||
$this->assertEquals('bmitch/churn-php', $name); | ||
$this->assertGreaterThan(0, $manifest->getRequirements()->count()); | ||
} | ||
} |