/** * Test JControllerLegacy::getName * * @covers JControllerLegacy::getName */ public function testGetName() { $this->assertThat($this->class->getName(), $this->equalTo('j')); TestReflection::setValue($this->class, 'name', 'inspector'); $this->assertThat($this->class->getName(), $this->equalTo('inspector')); }
/** * @testdox Ensure the getName() correctly returns the name of the controller * * @covers JControllerLegacy::getName */ public function testGetName() { $this->assertEquals($this->class->getName(), 'j'); TestReflection::setValue($this->class, 'name', 'inspector'); $this->assertEquals($this->class->getName(), 'inspector'); }