-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a97fe0b
commit 03fb4df
Showing
10 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
$reference; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package net.rentalhost.idea.laravelInsight.fluent; | ||
|
||
import com.intellij.psi.PsiElement; | ||
import com.intellij.psi.PsiFile; | ||
import org.junit.Assert; | ||
|
||
import net.rentalhost.suite.FixtureSuite; | ||
|
||
public class FluentUtilTest extends FixtureSuite { | ||
public void testIsUsingDirectly() { | ||
Assert.assertFalse(FluentUtil.isUsingDirectly(null)); | ||
|
||
final PsiFile fileSample = getResourceFile("laravelInsight/fluent/FluentUtil.samples.php"); | ||
final PsiElement emptyReference = getElementByName(fileSample, "reference"); | ||
|
||
Assert.assertFalse(FluentUtil.isUsingDirectly(emptyReference)); | ||
} | ||
|
||
public void testIsUsingIndirectly() { | ||
Assert.assertFalse(FluentUtil.isUsingIndirectly(null)); | ||
|
||
final PsiFile fileSample = getResourceFile("laravelInsight/fluent/FluentUtil.samples.php"); | ||
final PsiElement emptyReference = getElementByName(fileSample, "reference"); | ||
|
||
Assert.assertFalse(FluentUtil.isUsingIndirectly(emptyReference)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters