mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
moved test under tests/
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4" : {
|
||||
"Twig\\Tests\\" : "test/Twig/Tests"
|
||||
"Twig\\Tests\\" : "tests/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
|
||||
+2
-2
@@ -913,5 +913,5 @@ Testing the node visitors can be complex, so extend your test cases from
|
||||
`tests/Twig/Node`_ directory.
|
||||
|
||||
.. _`rot13`: https://secure.php.net/manual/en/function.str-rot13.php
|
||||
.. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/2.x/test/Twig/Tests/Fixtures
|
||||
.. _`tests/Twig/Node`: https://github.com/twigphp/Twig/tree/2.x/test/Twig/Tests/Node
|
||||
.. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/2.x/tests/Fixtures
|
||||
.. _`tests/Twig/Node`: https://github.com/twigphp/Twig/tree/2.x/tests/Node
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Twig Test Suite">
|
||||
<directory>./test/Twig/</directory>
|
||||
<directory>./tests/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class ErrorTest extends TestCase
|
||||
$error = new Error('foo');
|
||||
$error->setSourceContext(new Source('', new \SplFileInfo(__FILE__)));
|
||||
|
||||
$this->assertContains('test'.\DIRECTORY_SEPARATOR.'Twig'.\DIRECTORY_SEPARATOR.'Tests'.\DIRECTORY_SEPARATOR.'ErrorTest.php', $error->getMessage());
|
||||
$this->assertContains('tests'.\DIRECTORY_SEPARATOR.'ErrorTest.php', $error->getMessage());
|
||||
}
|
||||
|
||||
public function testTwigExceptionGuessWithMissingVarAndArrayLoader()
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Twig\Tests\Fixtures\errors;
|
||||
|
||||
require __DIR__.'/../../../../../vendor/autoload.php';
|
||||
require __DIR__.'/../../../vendor/autoload.php';
|
||||
|
||||
use Twig\Environment;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user