dolibarr/test/phpunit
MDW 746ca01423
Fix: Correctly close active output buffer. (#28723)
# Fix: Correctly close active output buffer.

Use ob_get_clean(), not ob_get_contents() and ob_clean().

Tests were failing with:
FunctionsLibTest::testVerifCond with data set "Test that verifConf("0") returns false" ('0', false)
Test code or tested code did not (only) close its own output buffers

OK, but incomplete, skipped, or risky tests\!

Also refactored a test case to use a data provider which helped identify that it was related
to dol_eval.
2024-03-09 01:27:01 +01:00
..
functional Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
AbstractRestAPITest.php Qual: Add AbstractRestApiTest class, refactor RestApiUserTest, add RestApiMosTest (#28484) 2024-02-28 17:03:53 +01:00
AccountingAccountTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ActionCommTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
AdherentTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
AdminLibTest.php Test/adminlib/remove deprecation (#28302) 2024-02-20 10:38:27 +01:00
AllTests.php Qual: Re-enable open_basedir restriction in tests (#28315) 2024-02-21 13:57:05 +01:00
AssetModelTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
BankAccountTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
BarcodeTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
BOMTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
BonPrelevementTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
BuildDocTest.php Fix warning 2024-03-02 13:15:20 +01:00
CategorieTest.php Fix: Use accessible path for CategorieTest (#28600) 2024-03-03 15:59:08 +01:00
ChargeSocialesTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CMailFileTest.php Fix phpcs 2024-03-03 16:58:03 +01:00
CodingPhpTest.php Disable not complete test 2024-03-05 01:07:19 +01:00
CodingSqlTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CommandeFournisseurTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CommandeTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CommonClassTest.class.php Fix: Script tests on Windows where PHP executable is not in path. (#28565) 2024-03-04 20:13:34 +01:00
CommonInvoiceTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CommonObjectTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CompanyBankAccountTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CompanyLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ContactTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ContratTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
CoreTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
DateLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
DateLibTzFranceTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
DiscountTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
DoliDBTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
EmailCollectorTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
EntrepotTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
EvalMathTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ExpenseReportTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ExportTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
FactureFournisseurTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
FactureRecTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
FactureTest.php Fix bad message 2024-03-05 01:12:28 +01:00
FactureTestRounding.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
FichinterTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
file_import_company_1.csv Add phpunit to test the rename/move into a corrupted pdf file. 2024-02-17 18:59:57 +01:00
file_pdf_with_js.pdf.jpg Add phpunit to test the rename/move into a corrupted pdf file. 2024-02-17 18:59:57 +01:00
FilesLibTest.php Add phpunit to test the rename/move into a corrupted pdf file. 2024-02-17 18:59:57 +01:00
FormAdminTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
FormTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
Functions2LibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
FunctionsLibTest.php Fix: Correctly close active output buffer. (#28723) 2024-03-09 01:27:01 +01:00
GetUrlLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
HolidayTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ImagesLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
imap_header.txt Add samples for imap functions test 2021-07-15 23:03:24 +02:00
imap_htmlmsg.txt Add samples for imap functions test 2021-07-15 23:03:24 +02:00
imap_plaintext.txt Add samples for imap functions test 2021-07-15 23:03:24 +02:00
img250x20.png I forgot image file 2012-04-02 09:47:35 +02:00
img250x50.jpg Qual: Use a shared function to define logo heigth. 2012-04-01 23:57:15 +02:00
imgsvgwithjs.svg Fix #yogosha4490 2020-09-18 03:07:13 +02:00
ImportTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
InventoryTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
JsonLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
KnowledgeRecordTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
LangTest.php Fix warning 2024-02-21 12:46:20 +01:00
LesscTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
LoanTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
MarginsLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ModulesTest.php Qual: Fix/complete/refactor ModuleTest case. (#28373) 2024-02-23 17:43:18 +01:00
MouvementStockTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
NumberingModulesTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ODFTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
PaypalTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
PdfDocTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
PgsqlTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
phpunit.dtd Fix: Removed warning no dtd found 2011-01-12 14:33:57 +00:00
phpunittest.xml Fix restore stop on failure. No need to continue, we must fix first. 2024-03-05 01:05:50 +01:00
PricesTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ProductTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ProfidLibTest.php Clean code 2024-02-17 15:50:51 +01:00
ProjectTest.php Add phpunit test on tasks 2024-02-20 01:17:00 +01:00
PropalTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
ReceptionTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
RepositoryTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
RestAPIContactTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
RestAPIDocumentTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
RestAPIMosTest.php Qual: Add AbstractRestApiTest class, refactor RestApiUserTest, add RestApiMosTest (#28484) 2024-02-28 17:03:53 +01:00
RestAPIUserTest.php Qual: Add AbstractRestApiTest class, refactor RestApiUserTest, add RestApiMosTest (#28484) 2024-02-28 17:03:53 +01:00
ScriptsTest.php Fix: Script tests on Windows where PHP executable is not in path. (#28565) 2024-03-04 20:13:34 +01:00
SecurityTest.php Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into 2024-03-03 19:59:34 +01:00
SocieteTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
StripeTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
SupplierProposalTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
TargetTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
testemailing.txt Fix: Error management of mass email feature 2014-05-17 19:02:47 +02:00
testvirus.txt Make virus file no more detected. 2022-01-23 12:59:15 +01:00
textiso.txt Update test samples 2012-02-12 19:15:17 +01:00
textutf8.txt Update test samples 2012-02-12 19:15:17 +01:00
TicketTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
UserGroupTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
UserTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
UtilsTest.php Fix: Skip UtilsTest on windows where ls is not available (#28601) 2024-03-03 17:01:17 +01:00
WebservicesInvoicesTest.php Fix warning 2024-03-02 13:15:20 +01:00
WebservicesOrdersTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
WebservicesOtherTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
WebservicesProductsTest.php Fix warning 2024-03-02 13:15:20 +01:00
WebservicesThirdpartyTest.php Fix warning 2024-03-02 13:15:20 +01:00
WebservicesUserTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
WebsiteTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00
XCalLibTest.php Qual: Improve test messages to help locate errors + php-cs-fixer on tests (#28272) 2024-02-19 15:28:21 +01:00