[pkg-php-pear] Bug#761373: [PATCH 2/2] Test for trailing dot in description
David Prévot
taffit at debian.org
Sat Sep 13 19:11:45 UTC 2014
Reproduces the changes from 90f0f2d, but adapted from PEAR to Composer.
---
tests/PhpcomposerCliTest.php | 2 +-
tests/PhpcomposerSourceTest.php | 2 +-
testsuite/data/composerpkg1/composer.json | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/PhpcomposerCliTest.php b/tests/PhpcomposerCliTest.php
index f90bf11..5213432 100644
--- a/tests/PhpcomposerCliTest.php
+++ b/tests/PhpcomposerCliTest.php
@@ -44,7 +44,7 @@ class PhpcomposerCliTest extends PHPUnit_Framework_TestCase {
}
public function testPhpcomposerDescription() {
- $this->expectOutputString('Some project, from some vendor, from somewhere. Also with a very long line to check for that too ;-)');
+ $this->expectOutputString('Some project, from some vendor, from somewhere. Also with a very long line to check for that too ;-).');
chdir('testsuite/data/composerpkg1');
$this->_cli->parseArgs(Array('phpcomposer', 'description'));
}
diff --git a/tests/PhpcomposerSourceTest.php b/tests/PhpcomposerSourceTest.php
index 60ac778..53785b2 100644
--- a/tests/PhpcomposerSourceTest.php
+++ b/tests/PhpcomposerSourceTest.php
@@ -70,7 +70,7 @@ class PhpcomposerSourceTest extends PHPUnit_Framework_TestCase {
* @depends testOpen
*/
public function testDescription($source) {
- $this->assertEquals('Some project, from some vendor, from somewhere. Also with a very long line to check for that too ;-)', $source->description);
+ $this->assertEquals('Some project, from some vendor, from somewhere. Also with a very long line to check for that too ;-).', $source->description);
}
/**
diff --git a/testsuite/data/composerpkg1/composer.json b/testsuite/data/composerpkg1/composer.json
index 30b4f2a..2369696 100644
--- a/testsuite/data/composerpkg1/composer.json
+++ b/testsuite/data/composerpkg1/composer.json
@@ -1,7 +1,7 @@
{
"name": "vendor/project",
"type": "library",
- "description": "Some project, from some vendor, from somewhere. Also with a very long line to check for that too ;-)",
+ "description": "Some project, from some vendor, from somewhere. Also with a very long line to check for that too ;-).",
"keywords": ["Test", "Project"],
"homepage": "http://example.org/",
"license" : "BSD-3-Clause",
--
2.1.0
More information about the pkg-php-pear
mailing list