-
-
Notifications
You must be signed in to change notification settings - Fork 209
Test enhancement #228
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
Test enhancement #228
Conversation
| $this->assertSame('methodValue', invoke_first($this->listIterator, 'method')); | ||
| $this->assertSame(null, invoke_first($this->list, 'undefinedMethod')); | ||
| $this->assertSame(null, invoke_first($this->list, 'setExpectedExceptionFromAnnotation'), 'Protected method'); | ||
| $this->assertNull(invoke_first($this->list, 'undefinedMethod')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should use the assertNull to assert expected is null.
| $this->assertSame('methodValue', invoke_first($this->iteratorVeryFirstNotCallable, 'method')); | ||
| $this->assertSame(null, invoke_first($this->arrayVeryFirstNotCallable, 'undefinedMethod')); | ||
| $this->assertSame(null, invoke_first($this->arrayVeryFirstNotCallable, 'setExpectedExceptionFromAnnotation'), 'Protected method'); | ||
| $this->assertNull(invoke_first($this->arrayVeryFirstNotCallable, 'undefinedMethod')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should use the assertNull to assert expected is null.
| $this->assertSame('methodValue', invoke_last($this->listIterator, 'method')); | ||
| $this->assertSame(null, invoke_last($this->list, 'undefinedMethod')); | ||
| $this->assertSame(null, invoke_last($this->list, 'setExpectedExceptionFromAnnotation'), 'Protected method'); | ||
| $this->assertNull(invoke_last($this->list, 'undefinedMethod')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should use the assertNull to assert expected is null.
| $this->assertSame('2', pick($this->array_1, 'two')); | ||
| $this->assertSame( | ||
| null, | ||
| $this->assertNull( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should use the assertNull to assert expected is null.
| $this->assertSame(':)', pick($this->array_1, 'zero-index', ':)', $customCallback)); | ||
| $this->assertSame('0', pick($this->array_1, 'zero-string-index', ':)', $customCallback)); | ||
| $this->assertSame(false, pick($this->array_1, 'false-index', ':)', $customCallback)); | ||
| $this->assertFalse(pick($this->array_1, 'false-index', ':)', $customCallback)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should use the assertFalse to assert expected is false.
lstrojny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! Can you fix the composer conflict so I can merge?
|
There're many conflicts to be concerned. I decide to close this PR and create another one :). |
Changed log
php-7.1version at least, and it should modify semver version oncomposer.jsonfile.protected function setUp(): void.