Example #1
0
 public function testData()
 {
     $profiler = ProfilerFactory::build([ProfilerFactory::OPTION_ENABLE => true, ProfilerFactory::OPTION_DATASOURCE_CLASS => File::class, ProfilerFactory::OPTION_DATASOURCE_PROFILES_FOLDER => '/tmp']);
     $renderer = new Route(["value" => [['method' => 'GET', 'uri' => '/foo', 'name' => 'foo', 'action' => 'foo.do', 'middleware' => null]]], $profiler);
     $this->assertInternalType('array', $renderer->getData());
     $this->assertNotEmpty($renderer->getData());
     $this->assertNotEmpty($renderer->getTitle());
     $this->assertNotEmpty($renderer->getIcon());
     $this->assertNotEmpty($renderer->content());
 }