Example #1
0
 /** @test */
 public function it_sets_active_classes()
 {
     $html = new Html();
     $expected = 'custom-active';
     $randomUrl = '/random-url?pg=2';
     $_SERVER['REQUEST_URI'] = $randomUrl;
     $actual = $html->activate(['/random-url'], $expected);
     $this->assertEquals($expected, $actual);
 }