public function testSetPathResetsCollectionOfParams() { $initial = '/hello/to:*'; $override = '/bye/from:*'; $expected = ['from']; $instance = new Resource($initial); $instance->setPath($override); $this->assertAttributeEquals($expected, 'params', $instance); }