예제 #1
0
 public function testNestedMicroformatPropertyNameWorks()
 {
     $expected = array('location');
     $test = 'someclass p-location someotherclass';
     $actual = Mf2\nestedMfPropertyNamesFromClass($test);
     $this->assertEquals($actual, $expected);
 }
예제 #2
0
 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);
 }