Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve php 7 exceptions in testing #1462

Open
TimLethbridge opened this issue Jun 17, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@TimLethbridge
Copy link
Member

commented Jun 17, 2019

In php 5 the current testing does not result in any problems. However in PhP7 there are a variety of exceptions reported, listed below. Note that while solving this it will be important to ensure that php 5 is not broken; please test in both php versions.

It would be OK to solve this in a series of PRs, getting rid of different sets of problems each time.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; TestSuite has a deprecated constructor in 
dist/libs/php/simpletest/test_case.php on line 477

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; BadTestSuite has a deprecated constructor in 
dist/libs/php/simpletest/test_case.php on line 612

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingXmlTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 292

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingMethodTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 342

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingCaseTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 382

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; TestSuite has a deprecated constructor in 
dist/libs/php/simpletest/test_case.php on line 477

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; BadTestSuite has a deprecated constructor in 
dist/libs/php/simpletest/test_case.php on line 612

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingXmlTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 292

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingGroupTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 422

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingMethodTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 342

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SimpleTestXmlParser has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 474

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingCaseTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 382

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; NestingGroupTag has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 422

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SimpleTestXmlParser has a deprecated constructor in 
dist/libs/php/simpletest/xml.php on line 474

PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in 
testbed_php/test/AllTestHelper.php on line 3

Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in 
testbed_php/test/AllTestHelper.php on line 3

Warning: opendir(tracer): failed to open dir: No such file or directory in 
testbed_php/test/AllTestHelper.php on line 19

PHP Warning: opendir(tracer): failed to open dir: No such file or directory in 
testbed_php/test/AllTestHelper.php on line 19

All Tests

Exception: associations/MNToMNTest.php -> MNToMNTest -> test_deleteMentorAndStudentNowHasTooFewMentors -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorS.php line 184]

Exception: associations/MNToMNTest.php -> MNToMNTest -> test_deleteMentorAndStudentNowHasTooFewMentors -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorS.php line 184]

Exception: associations/ManyToMNTest.php -> ManyToMNTest -> test_setStudents_outsideNM -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorO.php line 189]

E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorS.php on line 184Exception: associations/ManyToMStarTest.php -> ManyToMStarTest -> test_setStudents_doNotAllowDuplicates -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorR.php line 179]

E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorS.php on line 184Exception: associations/ManyToOptionalNTest.php -> ManyToOptionalNTest -> test_setStudents_aboveNKeepsExistingIntact -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorAA.php line 173]

E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorO.php on line 189Exception: associations/ManyToNTest.php -> ManyToNTest -> test_setStudents_outsideN -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorQ.php line 194]

E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorR.php on line 179 E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorAA.php on line 173Exception: associations/ManyToNTest.php -> ManyToNTest -> test_setStudents_outsideN -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorQ.php line 194]

E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorQ.php on line 194 E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorQ.php on line 194

Exception: associations/ManyToNTest.php -> ManyToNTest -> test_setStudents_doNotAllowDuplicatesNM -> Unexpected PHP error [count(): Parameter must be an array or an object that implements Countable] severity [2] in [
testbed_php/src-gen-umple/MentorQ.php line 194]

Exception: attributes/ImmutableTest.php -> ImmutableTest -> test_Immutable -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/ImmutableTest.php line 9]

Exception: attributes/ImmutableTest.php -> ImmutableTest -> test_Immutable -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/ImmutableTest.php line 27]

Exception: attributes/ImmutableTest.php -> ImmutableTest -> test_ImmutableInitialized -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/src-gen-umple/DoorA.php line 33]

E_WARNING: count(): Parameter must be an array or an object that implements Countable in 
testbed_php/src-gen-umple/MentorQ.php on line 194 E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/ImmutableTest.php on line 9 Exception: attributes/ImmutableTest.php -> ImmutableTest -> test_ImmutableInitialized -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/ImmutableTest.php line 60]

Exception: attributes/DefaultedTest.php -> DefaultedTest -> test_defaulted -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/src-gen-umple/DoorD.php line 219]

E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/ImmutableTest.php on line 27 E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/src-gen-umple/DoorA.php on line 33 Exception: attributes/DefaultedTest.php -> DefaultedTest -> test_defaulted -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/DefaultedTest.php line 34]

Exception: attributes/DefaultedTest.php -> DefaultedTest -> test_defaulted -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/DefaultedTest.php line 35]

E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/ImmutableTest.php on line 60 E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/src-gen-umple/DoorD.php on line 219 Exception: attributes/DefaultedTest.php -> DefaultedTest -> test_defaulted -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/DefaultedTest.php line 36]

E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/DefaultedTest.php on line 34 E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/DefaultedTest.php on line 35Exception: attributes/DefaultedTest.php -> DefaultedTest -> test_defaulted -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/src-gen-umple/DoorD.php line 219]
Exception: attributes/DefaultedTest.php -> DefaultedTest -> test_defaulted -> Unexpected PHP error [time() expects exactly 0 parameters, 1 given] severity [2] in [
testbed_php/test/attributes/DefaultedTest.php line 38]

E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/DefaultedTest.php on line 36
46/46 test cases complete: E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/src-gen-umple/DoorD.php on line 219 1895 passes, 0 fails and 18 exceptions.

E_WARNING: time() expects exactly 0 parameters, 1 given in 
testbed_php/test/attributes/DefaultedTest.php on line 38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.