/** * @test */ function it_prints_author_text() { $author = new \PlatziPHP\Author("*****@*****.**", '123456', 'AUTOR_DE_PLATZI'); $author->setName('alexander', 'montaña'); $post = new \PlatziPHP\Post($author, 'My first Post', 'This is the content of my firstPost'); $this->assertEquals('by alexander', $post->printAuthor()); }