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