/** * We test both at once */ public function testGetAndSetName() { $this->object->setName('unittestfilename'); $this->assertThat( $this->object->getName(), $this->equalTo('unittestfilename'), 'setName or getName did not work' ); }
/** * @testdox Test that setName returns an instance of $this */ public function testEnsureSetNameReturnsThisObject() { $this->assertSame($this->object, $this->object->setName('CMS')); }