From c92c9c3fbad5c1b1d1c3f98ad72cf02272e10a01 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Mon, 27 May 2019 13:05:09 +0200 Subject: [PATCH] Updated test to refect new generalization --- tests/ReadSws_test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ReadSws_test.php b/tests/ReadSws_test.php index 8feffff..2b78ce8 100644 --- a/tests/ReadSws_test.php +++ b/tests/ReadSws_test.php @@ -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;