mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Update travis and scrutinizer config
This commit is contained in:
committed by
Mike van Riel
parent
c24f8ead92
commit
056607296e
+1
-14
@@ -2,14 +2,7 @@ before_commands:
|
|||||||
- "composer install --no-dev --prefer-source"
|
- "composer install --no-dev --prefer-source"
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
external_code_coverage:
|
external_code_coverage: true
|
||||||
enabled: false
|
|
||||||
timeout: 300
|
|
||||||
filter:
|
|
||||||
excluded_paths: ["tests", "vendor"]
|
|
||||||
php_code_coverage:
|
|
||||||
enabled: false
|
|
||||||
test_command: phpunit -c phpunit.xml.dist
|
|
||||||
php_code_sniffer:
|
php_code_sniffer:
|
||||||
enabled: true
|
enabled: true
|
||||||
config:
|
config:
|
||||||
@@ -19,12 +12,6 @@ tools:
|
|||||||
php_cpd:
|
php_cpd:
|
||||||
enabled: true
|
enabled: true
|
||||||
excluded_dirs: ["tests", "vendor"]
|
excluded_dirs: ["tests", "vendor"]
|
||||||
php_cs_fixer:
|
|
||||||
enabled: true
|
|
||||||
config:
|
|
||||||
level: all
|
|
||||||
filter:
|
|
||||||
paths: ["src/*", "tests/*"]
|
|
||||||
php_loc:
|
php_loc:
|
||||||
enabled: true
|
enabled: true
|
||||||
excluded_dirs: ["tests", "vendor"]
|
excluded_dirs: ["tests", "vendor"]
|
||||||
|
|||||||
+11
-14
@@ -1,29 +1,26 @@
|
|||||||
language: php
|
language: php
|
||||||
php:
|
php:
|
||||||
- 5.3.3
|
|
||||||
- 5.3
|
|
||||||
- 5.4
|
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
- 7.0
|
- 7.0
|
||||||
- hhvm
|
- hhvm
|
||||||
- hhvm-nightly
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
- php: hhvm-nightly
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit
|
- vendor/bin/phpunit --coverage-clover=coverage.clover -v
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get -qq update > /dev/null
|
- composer install --no-interaction
|
||||||
- phpenv rehash > /dev/null
|
|
||||||
- composer selfupdate --quiet
|
after_script:
|
||||||
- composer install --no-interaction --prefer-source --dev
|
- wget https://scrutinizer-ci.com/ocular.phar
|
||||||
- vendor/bin/phpunit
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
||||||
- composer update --no-interaction --prefer-source --dev
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc: "irc.freenode.org#phpdocumentor"
|
irc: "irc.freenode.org#phpdocumentor"
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* This file is part of phpDocumentor.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*
|
||||||
|
* @copyright 2010-2015 Mike van Riel<[email protected]>
|
||||||
|
* @license http://www.opensource.org/licenses/mit-license.php MIT
|
||||||
|
* @link http://phpdoc.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace phpDocumentor\Reflection\DocBlock;
|
||||||
|
|
||||||
|
use Mockery as m;
|
||||||
|
use phpDocumentor\Reflection\DocBlock\Description\PassthroughFormatter;
|
||||||
|
use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
|
||||||
|
use phpDocumentor\Reflection\DocBlock\Tags\Link;
|
||||||
|
use phpDocumentor\Reflection\DocBlock\Tags\Other;
|
||||||
|
use phpDocumentor\Reflection\Types\Context;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
|
*/
|
||||||
|
class DescriptionFactoryTest extends \PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @covers ::__construct
|
||||||
|
*/
|
||||||
|
public function testDescriptionCanRenderUsingABodyWithPlaceholdersAndTags()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides a series of example strings that the parser should correctly interpret and return.
|
||||||
|
*
|
||||||
|
* @return string[][]
|
||||||
|
*/
|
||||||
|
public function provideExampleDescriptions()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
['This is text for a description.'],
|
||||||
|
['This is text for a {@link http://phpdoc.org/ description} that uses an inline tag.'],
|
||||||
|
['{@link http://phpdoc.org/ This} is text for a description that starts with an inline tag.'],
|
||||||
|
[
|
||||||
|
'This is text for a description with {@internal inline tag with {@link http://phpdoc.org another '
|
||||||
|
. 'inline tag} in it}.'
|
||||||
|
],
|
||||||
|
['This is text for a description containing { that is literal.'],
|
||||||
|
['This is text for a description containing {@internal inline tag that has { that is literal}.'],
|
||||||
|
['This is text for a description with {} that is not a tag.'],
|
||||||
|
['This is text for a description with {@internal inline tag with {} that is not an inline tag}.'],
|
||||||
|
['This is text for a description with an {@internal inline tag with literal {{@}link{} in it}.']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user