public function testNestedMicroformatPropertyNameWorks() { $expected = array('location'); $test = 'someclass p-location someotherclass'; $actual = Mf2\nestedMfPropertyNamesFromClass($test); $this->assertEquals($actual, $expected); }
public function testNestedMicroformatPropertyNameWorks() { $expected = array('location' => array('p-'), 'author' => array('u-', 'p-')); $test = 'someclass p-location someotherclass u-author p-author'; $actual = Mf2\nestedMfPropertyNamesFromClass($test); $this->assertEquals($expected, $actual); }