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 phpDocumentor\Reflection\File;
use PHPUnit\Framework\TestCase;
* @coversDefaultClass phpDocumentor\Reflection\File\LocalFile
* @covers ::__construct
class LocalFileTest extends TestCase
{
* @covers ::getContents
public function testGetContents()
$file = new LocalFile(__FILE__);
$this->assertStringEqualsFile(__FILE__, $file->getContents());
}
* @covers ::md5
public function testMd5()
$this->assertEquals(md5_file(__FILE__), $file->md5());
* @expectedException \InvalidArgumentException
public function testNotExistingFileThrowsException()
new LocalFile('aa');
* @covers ::path
public function testPath()
$this->assertEquals(__FILE__, $file->path());