moved test under tests/

This commit is contained in:
Fabien Potencier
2019-06-30 14:51:54 +02:00
parent c0936a6fbd
commit 1e3bb75010
443 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -43,7 +43,7 @@
},
"autoload-dev": {
"psr-4" : {
"Twig\\Tests\\" : "test/Twig/Tests"
"Twig\\Tests\\" : "tests/"
}
},
"extra": {
+2 -2
View File
@@ -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
View File
@@ -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()
@@ -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