/** * @test * @dataProvider malformedSlashes * @param string $broken * @param string $good */ public function shouldReplaceTwoBackSlashes($broken, $good) { //given $this->_path(Config::getPrefixSystem() . $broken); //when $path = $this->uri->getPathWithoutPrefix(); //then $this->assertEquals($good, $path); }
/** * @test */ public function shouldConstructUrlForAddress() { $url = url(array('string' => '/users/show')); $this->assertEquals(Config::getPrefixSystem() . '/users/show', $url); }