public function testNoMatch() { $view = new SystemInfoView(); $view->setInfo(new HardwareSystemInfo()); $matcher = new Identifier(); $matcher->setMatchingConfig('php'); self::assertFalse($matcher->match($view)); }
public function buildView(array $parameters) { $collector = $this->getCollector($parameters['systemInfoIdentifier']); $view = new SystemInfoView(null, [], $parameters['viewType']); $view->setInfo($collector->collect()); $this->viewConfigurator->configure($view); return $view; }