Last active
April 27, 2020 01:38
-
-
Save craig-davis/d2814939cc3b1b07931788b99d9e83eb to your computer and use it in GitHub Desktop.
PHPUnit Assertion with Message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function testAuthorHasPostsArray() | |
{ | |
self::assertIsArray( | |
(new Author())->getPosts(), | |
'Author should have an accessible array of posts' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment