/** * Test isActive with non matching urls. */ public function testIsActive() { $node = new Node(); $this->assertFalse($node->isActive('whatever')); $node->setActiveUrls(['http://localhost:0001', 'http://localhost:0002']); $this->assertFalse($node->isActive('http://localhost:0000')); $this->assertTrue($node->isActive('http://localhost:0001')); }