Updated test to refect new generalization

This commit is contained in:
Jeroen De Meerleer 2019-05-27 13:05:09 +02:00
parent 10f658532d
commit 27946f9d31
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -23,11 +23,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
use JeroenED\Libpairtwo\Sws;
use JeroenED\Libpairtwo\IOFactory;
require_once '../vendor/autoload.php';
$sws = Sws::readSws('../res/testsws.sws');
$sws = IOFactory::createReader('Pairtwo-6');
$sws->read('../res/testsws.sws');
echo "Release: " . $sws->getRelease() . PHP_EOL;
echo "Name: " . $sws->getTournament()->getName() . PHP_EOL;
echo "Organiser: " . $sws->getTournament()->getOrganiser(). PHP_EOL;