assertIsString($js); $posTemp = strpos($js, 'function tempButtonFeedback'); $posRunId = strpos($js, 'copy-run-id'); $this->assertNotFalse($posTemp); $this->assertNotFalse($posRunId); $this->assertTrue($posTemp < $posRunId, 'tempButtonFeedback should be defined before copy-run-id handler'); } }