Ignore:
Timestamp:
Oct 28, 2018, 10:57:46 AM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
46eee06
Parents:
1c0ee46
git-author:
Joachim Langenbach <joachim.langenbach@…> (10/28/18 10:55:50)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (10/28/18 10:57:46)
Message:
  • Updated Tests to work with PHP 7
    • Added phing phar which works with PHP7 as a choice for the developer
    • Updated phpunit to 7.4.3 which works with PHP7 and removed old PHPUnit version
    • Updated test cases to work with PHPUnit 7.4.3
Location:
src/webapp/webservice/tests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webservice/tests/Nmea0183DptTest.php

    r1c0ee46 rc0e66e6  
    11<?php
    22/*
    3     Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2017 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1818
    1919//  enable in php 7
    20 // declare(Strict_types=1);
     20declare(Strict_types=1);
     21use PHPUnit\Framework\TestCase;
    2122
    2223/**
    2324  * @brief Covers Nmea0183Dpt.php
    2425  */
    25 final class Nmea0183DptTest extends PHPUnit_Framework_TestCase
     26final class Nmea0183DptTest extends TestCase
    2627{
    2728        /**
  • src/webapp/webservice/tests/Nmea0183MtwTest.php

    r1c0ee46 rc0e66e6  
    11<?php
    22/*
    3     Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2017 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1818
    1919//  enable in php 7
    20 // declare(Strict_types=1);
     20declare(Strict_types=1);
     21use PHPUnit\Framework\TestCase;
    2122
    2223/**
    2324  * @brief Covers Nmea0183Mtw.php
    2425  */
    25 final class Nmea0183MtwTest extends PHPUnit_Framework_TestCase
     26final class Nmea0183MtwTest extends TestCase
    2627{
    2728        /**
  • src/webapp/webservice/tests/Nmea0183RmcTest.php

    r1c0ee46 rc0e66e6  
    11<?php
    22/*
    3     Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2017 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1818
    1919//  enable in php 7
    20 // declare(Strict_types=1);
     20declare(Strict_types=1);
     21use PHPUnit\Framework\TestCase;
    2122
    2223/**
    2324  * @brief Covers Nmea0183Rmc.php
    2425  */
    25 final class Nmea0183RmcTest extends PHPUnit_Framework_TestCase
     26final class Nmea0183RmcTest extends TestCase
    2627{
    2728        /**
  • src/webapp/webservice/tests/NmeaTest.php

    r1c0ee46 rc0e66e6  
    11<?php
    22/*
    3     Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2017 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1818
    1919//  enable in php 7
    20 // declare(Strict_types=1);
     20declare(Strict_types=1);
     21use PHPUnit\Framework\TestCase;
    2122
    2223namespace GnuBoat\Nmea
    … …  
    2627        * @brief Covers Parser.php
    2728        */
    28         final class NmeaTest extends \PHPUnit_Framework_TestCase
     29        final class NmeaTest extends \PHPUnit\Framework\TestCase
    2930        {
    3031                /**
  • src/webapp/webservice/tests/ServiceTest.php

    r1c0ee46 rc0e66e6  
    11<?php
    22/*
    3     Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2017 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1818
    1919//  enable in php 7
    20 // declare(Strict_types=1);
     20declare(Strict_types=1);
     21use PHPUnit\Framework\TestCase;
    2122
    2223namespace GnuBoat;
    … …  
    2526  * @brief Covers Service.php tests
    2627  */
    27 final class ServiceTest extends \PHPUnit_Framework_TestCase
     28final class ServiceTest extends \PHPUnit\Framework\TestCase
    2829{
    2930        public function testData()
  • src/webapp/webservice/tests/TrackItemTest.php

    r1c0ee46 rc0e66e6  
    11<?php
    22/*
    3     Copyright (C) 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2017 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1818
    1919//  enable in php 7
    20 // declare(Strict_types=1);
     20declare(Strict_types=1);
     21use PHPUnit\Framework\TestCase;
    2122
    2223/**
    2324  * @brief Covers Service.php tests
    2425  */
    25 final class TrackItemTest extends \PHPUnit_Framework_TestCase
     26final class TrackItemTest extends \PHPUnit\Framework\TestCase
    2627{
    2728        public function testConstructor()
Note: See TracChangeset for help on using the changeset viewer.