ed103545dd
In charge of taking over the, now removed/archived, phpunit/dbunit package. It supports loading of CSV/XML files and strings and PHP arrays, allowing to send the loaded information to database. Perform some basic controls about the consistency of information, surely not super-exhaustive but fair enough. 100% covered with unit test. Planned like an "interim" replacement for phpunit/dbunit uses in core that, ideally, should be moved to generators stuff at some point. Note, expect a few tests in core to fail with this commit, I've changed some fixtures around. Next commit will fix existing uses. Originally MDL-64600
40 lines
1019 B
XML
40 lines
1019 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<dataset>
|
|
<table name="user">
|
|
<column>id</column>
|
|
<column>username</column>
|
|
<column>email</column>
|
|
<row>
|
|
<value>5</value>
|
|
<value>bozka.novakova</value>
|
|
<value>bozka@example.com</value>
|
|
</row>
|
|
<row>
|
|
<value>7</value>
|
|
<value>pepa.novak</value>
|
|
<value>pepa@example.com</value>
|
|
</row>
|
|
</table>
|
|
<table name="empty1" />
|
|
<table name="empty2">
|
|
<column>id</column>
|
|
<column>shortname</column>
|
|
<column>fullname</column>
|
|
</table>
|
|
<table name="course">
|
|
<column>id</column>
|
|
<column>shortname</column>
|
|
<column>fullname</column>
|
|
<row>
|
|
<value>6</value>
|
|
<value>101</value>
|
|
<value>1-0-1</value>
|
|
</row>
|
|
<row>
|
|
<value>8</value>
|
|
<value>202</value>
|
|
<value>2-0-2</value>
|
|
</row>
|
|
</table>
|
|
</dataset>
|