Skip to content

Commit

Permalink
No more php7 directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Apr 22, 2016
1 parent dd3906f commit c3bbd67
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/Helpers/FunctionHelperTest.php
Expand Up @@ -25,7 +25,7 @@ public function testNameWithoutNamespace()

public function testNameInAnonymousClass()
{
$codeSnifferFile = $this->getCodeSnifferFile(__DIR__ . '/data/php7/functionInAnonymousClass.php');
$codeSnifferFile = $this->getCodeSnifferFile(__DIR__ . '/data/functionInAnonymousClass.php');
$this->assertSame('class@anonymous::fooMethod', FunctionHelper::getFullyQualifiedName($codeSnifferFile, $this->findFunctionPointerByName($codeSnifferFile, 'fooMethod')));
$this->assertSame('fooMethod', FunctionHelper::getName($codeSnifferFile, $this->findFunctionPointerByName($codeSnifferFile, 'fooMethod')));
}
Expand All @@ -47,7 +47,7 @@ public function testFunctionOrMethod()

public function testParametersTypeHints()
{
$codeSnifferFile = $this->getCodeSnifferFile(__DIR__ . '/data/php7/functionParametersTypeHints.php');
$codeSnifferFile = $this->getCodeSnifferFile(__DIR__ . '/data/functionParametersTypeHints.php');

$functionPointer = $this->findFunctionPointerByName($codeSnifferFile, 'allParametersWithTypeHints');
$parametersTypeHints = FunctionHelper::getParametersTypeHints($codeSnifferFile, $functionPointer);
Expand Down Expand Up @@ -123,7 +123,7 @@ public function testReturnsValueOrNot()

public function testReturnTypeHint()
{
$codeSnifferFile = $this->getCodeSnifferFile(__DIR__ . '/data/php7/functionReturnTypeHint.php');
$codeSnifferFile = $this->getCodeSnifferFile(__DIR__ . '/data/functionReturnTypeHint.php');

$functionPointer = $this->findFunctionPointerByName($codeSnifferFile, 'withReturnTypeHint');
$this->assertTrue(FunctionHelper::hasReturnTypeHint($codeSnifferFile, $functionPointer));
Expand Down
2 changes: 1 addition & 1 deletion tests/Helpers/ReferencedNameHelperTest.php
Expand Up @@ -87,7 +87,7 @@ public function testFindReferencedNameEndPointer()
public function testReturnTypehint()
{
$codeSnifferFile = $this->getCodeSnifferFile(
__DIR__ . '/data/php7/return-typehint.php'
__DIR__ . '/data/return-typehint.php'
);
$names = ReferencedNameHelper::getAllReferencedNames($codeSnifferFile, 0);
$this->assertCount(2, $names);
Expand Down
File renamed without changes.

0 comments on commit c3bbd67

Please sign in to comment.