Skip to content

Commit 1dd802d

Browse files
committed
Test documentation with test-flight
See also: https://test-flight.cundd.net/
1 parent 311e8d2 commit 1dd802d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ matrix:
2727
- php: hhvm
2828

2929
install:
30-
- composer require phpspec/prophecy:${PROPHECY_VERSION}
31-
- composer require squizlabs/php_codesniffer
32-
- composer require phpmd/phpmd
30+
- composer require phpspec/prophecy:${PROPHECY_VERSION} squizlabs/php_codesniffer phpmd/phpmd cundd/test-flight
3331

3432
script:
3533
- vendor/bin/phpunit
34+
- vendor/bin/test-flight README.md
35+
- vendor/bin/test-flight classes/
3636
- vendor/bin/phpcs --standard=PSR2 classes/ tests/
3737
- vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ and create function prophecies for a given namespace
1818
with [`PHPProphet::prophesize()`](http://php-mock.github.io/php-mock-prophecy/api/class-phpmock.prophecy.PHPProphet.html#_prophesize):
1919

2020
```php
21-
<?php
22-
2321
namespace foo;
2422

2523
use phpmock\prophecy\PHPProphet;

classes/PHPProphet.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
*
1414
* Example:
1515
* <code>
16+
* namespace foo;
17+
*
18+
* use phpmock\prophecy\PHPProphet;
19+
*
1620
* $prophet = new PHPProphet();
1721
*
1822
* $prophecy = $prophet->prophesize(__NAMESPACE__);

0 commit comments

Comments
 (0)