Updated test to refect new generalization

This commit is contained in:
Jeroen De Meerleer 2019-05-27 13:05:09 +02:00
parent eef38ebfe9
commit c92c9c3fba

View File

@ -23,11 +23,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
use JeroenED\Libpairtwo\Sws; use JeroenED\Libpairtwo\IOFactory;
require_once '../vendor/autoload.php'; 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 "Release: " . $sws->getRelease() . PHP_EOL;
echo "Name: " . $sws->getTournament()->getName() . PHP_EOL; echo "Name: " . $sws->getTournament()->getName() . PHP_EOL;
echo "Organiser: " . $sws->getTournament()->getOrganiser(). PHP_EOL; echo "Organiser: " . $sws->getTournament()->getOrganiser(). PHP_EOL;