/** * @test */ public function createReRunUrlEscapesAmpersands() { /** @var $test PHPUnit_Framework_TestCase|PHPUnit_Framework_TestSuite */ $test = $this->getMock('PHPUnit_Framework_TestCase', array(), array('myTest')); $this->fixture->setTestSuiteName('myTestCase'); $this->assertContains('&', $this->fixture->createReRunUrl($test)); }
/** * @test */ public function createReRunUrlEscapesAmpersands() { /** @var \PHPUnit_Framework_TestCase|\PHPUnit_Framework_TestSuite $test */ $test = $this->getMock('PHPUnit_Framework_TestCase', array(), array('myTest')); $this->subject->setTestSuiteName('myTestCase'); self::assertContains('&', $this->subject->createReRunUrl($test)); }