mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-01 04:56:28 +01:00
Updated test to refect new generalization
This commit is contained in:
parent
eef38ebfe9
commit
c92c9c3fba
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user