-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2211 from Haehnchen/feature/template-extraction
support profiler template rendering list in Symfony statusbar to allow navigation to template entrypoint
- Loading branch information
Showing
4 changed files
with
53 additions
and
8 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
24 changes: 24 additions & 0 deletions
24
...ienbrault/idea/symfony2plugin/tests/profiler/collector/LocalDefaultDataCollectorTest.java
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,24 @@ | ||
package fr.adrienbrault.idea.symfony2plugin.tests.profiler.collector; | ||
|
||
import fr.adrienbrault.idea.symfony2plugin.profiler.collector.LocalDefaultDataCollector; | ||
import fr.adrienbrault.idea.symfony2plugin.profiler.collector.LocalMailCollector; | ||
import fr.adrienbrault.idea.symfony2plugin.profiler.dict.MailMessage; | ||
import fr.adrienbrault.idea.symfony2plugin.profiler.utils.ProfilerUtil; | ||
import junit.framework.TestCase; | ||
|
||
import java.io.File; | ||
|
||
public class LocalDefaultDataCollectorTest extends TestCase { | ||
protected String getTestDataPath() { | ||
return "src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/profiler/collector/fixtures"; | ||
} | ||
|
||
public void testFoo() { | ||
String data = ProfilerUtil.getContentForFile(new File(this.getTestDataPath() + "/template-d6bc80")); | ||
|
||
LocalDefaultDataCollector localDefaultDataCollector = new LocalDefaultDataCollector(data); | ||
String template = localDefaultDataCollector.getTemplate(); | ||
|
||
assertEquals("test.html.twig", template); | ||
} | ||
} |
Binary file added
BIN
+124 KB
...ava/fr/adrienbrault/idea/symfony2plugin/tests/profiler/collector/fixtures/template-d6bc80
Binary file not shown.