for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Browser\Response;
use Symfony\Component\DomCrawler\Crawler;
/**
* @author Kevin Bond <[email protected]>
*/
final class XmlResponse extends DomResponse
{
public function crawler(): Crawler
$dom = new \DOMDocument();
$dom->loadXML($this->body());
return new Crawler($dom);
}