Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Remove zend-version dev dependency #10

Merged
merged 1 commit into from
Nov 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@
"require-dev": {
"doctrine/common": ">=2.1",
"zendframework/zend-stdlib": "~2.5",
"zendframework/zend-version": "~2.5",
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/PHPUnit": "~4.0"
},
18 changes: 3 additions & 15 deletions test/Reflection/FileReflectionTest.php
Original file line number Diff line number Diff line change
@@ -18,14 +18,6 @@
*/
class FileReflectionTest extends \PHPUnit_Framework_TestCase
{
public function testFileConstructor()
{
$filePath = __DIR__ . '/../../vendor/zendframework/zend-version/src/Version.php';
require_once $filePath;
$reflectionFile = new FileReflection($filePath);
$this->assertEquals(get_class($reflectionFile), 'Zend\Code\Reflection\FileReflection');
}

public function testFileConstructorThrowsExceptionOnNonExistentFile()
{
$nonExistentFile = 'Non/Existent/File.php';
@@ -108,19 +100,15 @@ public function testFileReflectorRequiredFunctionsDoNothing()
{
$this->assertNull(FileReflection::export());

$filePath = __DIR__ . '/../../vendor/zendframework/zend-version/src/Version.php';
require_once $filePath;
$reflectionFile = new FileReflection($filePath);
$reflectionFile = new FileReflection(__FILE__);
$this->assertEquals('', $reflectionFile->__toString());
}

public function testFileGetFilenameReturnsCorrectFilename()
{
$filePath = __DIR__ . '/../../vendor/zendframework/zend-version/src/Version.php';
require_once $filePath;
$reflectionFile = new FileReflection($filePath);
$reflectionFile = new FileReflection(__FILE__);

$this->assertEquals('Version.php', $reflectionFile->getFileName());
$this->assertEquals('FileReflectionTest.php', $reflectionFile->getFileName());
}

public function testFileGetLineNumbersWorks()