/** * @test */ function it_gives_us_the_author_name_in_post() { $author = new PlatziPHP\Author("*****@*****.**", "fake", "AUTOR_DE_PLATZI"); $author->setLastname('vargas'); $post = new PlatziPHP\Post($author, 'titulo', 'este es el body'); $this->assertEquals('', $post->getAuthor()); }
<?php /** * Created by PhpStorm. * User: stephan * Date: 25/12/15 * Time: 06:26 PM */ require_once 'vendor/autoload.php'; $user = new \PlatziPHP\Author('*****@*****.**', '1234'); //var_dump($user); //echo $user; $user->setLastname('vargas'); echo $user->getLastName(); echo PHP_EOL;