public function testget_summary_text() { $call = new Call(); //test without setting name $this->assertEquals(null, $call->get_summary_text()); //test with name set $call->name = 'test'; $this->assertEquals('test', $call->get_summary_text()); }