public function testSetSubject() { // new entity $post = new Post(); // Use the setSubject method $post->setSubject("One subject"); // Assert the result $this->assertEquals("One subject", $post->getSubject()); }