/** * @test * @depends URI\GenerateTest::Reset */ public function Chain_Errors() { $uri1 = new \uri('example.com'); // Check For Errors $this->assertEmpty($uri1->error); // none of these do anything, but they should all still return the chain class @$uri1->chain()->str()->to_string()->arr()->to_array()->path_info()->query_array()->query_exists()->query_get(); $this->assertSame(8, $uri1->chain()->error_count); // invalid inputs (no notices) $uri1->chain()->replace('SCHEME', '/invalid/')->prepend('SCHEME', '/invalid/')->append('SCHEME', '/invalid/')->query_rename('does_not_exist', 'nothing'); $this->assertSame(12, $uri1->chain()->error_count); $this->assertEquals($uri1->input, $uri1->str()); }