Browse Source

Renommer spip.inc en bootstrap.php pour etre plus conventionnel + ignorer le fichier tests/bootstrap_plugins.php

spip-4.1
Cerdic 7 months ago
parent
commit
0defc5e4e5
  1. 3
      .gitignore
  2. 2
      phpunit.xml.dist
  3. 2
      tests/EssaisTest.php
  4. 0
      tests/bootstrap.php

3
.gitignore vendored

@ -3,4 +3,5 @@ composer.lock
/vendor/
/vendor-bin/*/vendor/
.phpunit.result.cache
phpunit.xml
phpunit.xml
tests/bootstrap_plugins.php

2
phpunit.xml.dist

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/spip.inc"
<phpunit bootstrap="./tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"

2
tests/EssaisTest.php

@ -104,7 +104,7 @@ class EssaisTest extends TestCase {
$dir_base = __DIR__. '/essais';
$essais_files = glob("{{$dir_base}/*.php,{$dir_base}/*/*.php,{$dir_base}/*/*/*.php}",GLOB_BRACE);
include_once __DIR__ . "/spip.inc";
include_once __DIR__ . "/bootstrap.php";
$tests = [
];
foreach ($essais_files as $essai_file) {

0
tests/spip.inc → tests/bootstrap.php

Loading…
Cancel
Save