execute(); $this->assertTrue( strpos($response->getContent(), 'DokuWiki') >= 0, 'DokuWiki was not a word in the output' ); } /** * @depends testFirstRun */ function testSecondRun() { $request = new TestRequest(); $response = $request->execute(); $this->assertTrue( strpos($response->getContent(), 'DokuWiki') >= 0, 'DokuWiki was not a word in the output' ); } /** * two requests within the same test case should be possible */ function testMultipleRequests() { $request = new TestRequest(); $response = $request->execute(); $this->assertTrue( strpos($response->getContent(), 'DokuWiki') >= 0, 'DokuWiki was not a word in the output' ); $request = new TestRequest(); $response = $request->execute(); $this->assertTrue( strpos($response->getContent(), 'DokuWiki') >= 0, 'DokuWiki was not a word in the output' ); } }