File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static function fromFilePaths(array $filePaths)
2525
2626 public function toArray (): array
2727 {
28- return $ this ->filePath ;
28+ return $ this ->filePaths ;
2929 }
3030
3131 public function add (FilePath $ filePath )
Original file line number Diff line number Diff line change @@ -50,4 +50,17 @@ public function testEmpty()
5050 $ candidates = FilePathCandidates::fromFilePaths ([]);
5151 $ this ->assertTrue ($ candidates ->noneFound ());
5252 }
53+
54+ /**
55+ * @testdocs It can to array.
56+ */
57+ public function testToArray ()
58+ {
59+ $ filePaths = [
60+ FilePath::fromString ('Foobar ' ),
61+ ];
62+
63+ $ candidates = FilePathCandidates::fromFilePaths ($ filePaths );
64+ $ this ->assertEquals ($ candidates ->toArray (), $ filePaths );
65+ }
5366}
You can’t perform that action at this time.
0 commit comments