for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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-2018 Mike van Riel<[email protected]>
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace Flyfinder;
use PHPUnit\Framework\TestCase;
* Integration test against examples/03-sample-phpdoc-layout.php
* @coversNothing
class FindOnSamplePhpdocLayout extends TestCase
{
use TestsBothAlgorithms;
* @param int $finderAlgorithm
* @dataProvider algorithms
public function testFindingOnSamplePhpdocLayout(int $finderAlgorithm)
$result = [];
include(__DIR__ . '/../../examples/03-sample-phpdoc-layout.php');
$this->assertCount(4, $result);
$this->assertSame('JmsSerializerServiceProvider.php', $result[0]['basename']);
$this->assertSame('MonologServiceProvider.php', $result[1]['basename']);
$this->assertSame('Application.php', $result[2]['basename']);
$this->assertSame('Bootstrap.php', $result[3]['basename']);
}
public function algorithms() : array
return [
[Finder::ALGORITHM_LEGACY],
[Finder::ALGORITHM_OPTIMIZED]
];