public function testMessage() { $post = new TestPost(); $post->setTopic($this->getMock($this->topicClass)); $this->assertAttributeEmpty('message', $post, 'the message is empty during creation'); $post->setMessage('Foo bar bla bla...'); $this->assertAttributeEquals('Foo bar bla bla...', 'message', $post, '::setMessage() sets the message'); $this->assertEquals('Foo bar bla bla...', $post->getMessage(), '::getMessage() gets the message'); }