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

Commit e99aa5d

Browse files
committed
Merge pull request #10 from Maks3w/remove-zendversion-dependency
Remove zend-version dev dependency
2 parents a3fe9c5 + 2684541 commit e99aa5d

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"require-dev": {
2020
"doctrine/common": ">=2.1",
2121
"zendframework/zend-stdlib": "~2.5",
22-
"zendframework/zend-version": "~2.5",
2322
"fabpot/php-cs-fixer": "1.7.*",
2423
"phpunit/PHPUnit": "~4.0"
2524
},

test/Reflection/FileReflectionTest.php

+3-15
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818
*/
1919
class FileReflectionTest extends \PHPUnit_Framework_TestCase
2020
{
21-
public function testFileConstructor()
22-
{
23-
$filePath = __DIR__ . '/../../vendor/zendframework/zend-version/src/Version.php';
24-
require_once $filePath;
25-
$reflectionFile = new FileReflection($filePath);
26-
$this->assertEquals(get_class($reflectionFile), 'Zend\Code\Reflection\FileReflection');
27-
}
28-
2921
public function testFileConstructorThrowsExceptionOnNonExistentFile()
3022
{
3123
$nonExistentFile = 'Non/Existent/File.php';
@@ -108,19 +100,15 @@ public function testFileReflectorRequiredFunctionsDoNothing()
108100
{
109101
$this->assertNull(FileReflection::export());
110102

111-
$filePath = __DIR__ . '/../../vendor/zendframework/zend-version/src/Version.php';
112-
require_once $filePath;
113-
$reflectionFile = new FileReflection($filePath);
103+
$reflectionFile = new FileReflection(__FILE__);
114104
$this->assertEquals('', $reflectionFile->__toString());
115105
}
116106

117107
public function testFileGetFilenameReturnsCorrectFilename()
118108
{
119-
$filePath = __DIR__ . '/../../vendor/zendframework/zend-version/src/Version.php';
120-
require_once $filePath;
121-
$reflectionFile = new FileReflection($filePath);
109+
$reflectionFile = new FileReflection(__FILE__);
122110

123-
$this->assertEquals('Version.php', $reflectionFile->getFileName());
111+
$this->assertEquals('FileReflectionTest.php', $reflectionFile->getFileName());
124112
}
125113

126114
public function testFileGetLineNumbersWorks()

0 commit comments

Comments
 (0)