/** * @param Post $post */ protected function postBecameVisible(Post $post) { $mentioned = Utils::getAttributeValues($post->parsedContent, 'USERMENTION', 'id'); $this->sync($post, $mentioned); }
/** * @param Post $reply */ protected function replyBecameVisible(Post $reply) { $mentioned = Utils::getAttributeValues($reply->parsedContent, 'POSTMENTION', 'id'); $this->sync($reply, $mentioned); }
/** * @testdox getAttributeValues() tests * @dataProvider getGetAttributeValuesTests */ public function testGetAttributeValues($xml, $tagName, $attrName, $expected) { Utils::getAttributeValues($xml, $tagName, $attrName); $this->assertSame($expected, Utils::getAttributeValues($xml, $tagName, $attrName)); }