public function testStaticFlow() { $file1 = $this->makeFile('merge/static/file1', "line 1\nline 2\n"); $file2 = $this->makeFile('merge/static/file2', "line 3\nline 4\n"); $merged = $this->makeFile('merge/static/merged'); $flow = Flow::merge($merged); $collection = new FileNodeCollection([$file1, $file2]); $output = $flow->flow($collection); static::assertSame($output, $merged); static::assertEquals(["line 1", "line 2", "line 3", "line 4"], $output->getContents()); }