/** * Tests the caption method. * * @param string $expected @todo * @param string $selector @todo * * @return void * * @since 3.1 * @dataProvider getCaptionData */ public function testCaption($expected, $selector = 'img.caption') { JHtmlBehavior::caption($selector); $this->assertEquals($expected, JHtmlBehaviorInspector::getLoaded(), 'The caption behavior is not loaded with all expected dependencies'); }