File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/test/php/net/xp_framework/unittest/core Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,19 @@ public function resolveNonExistantFullyQualified() {
104
104
Process::resolve ('/@@non-existant@@ ' );
105
105
}
106
106
107
- #[Test, Action(eval: 'new IsPlatform("!(WIN|ANDROID)") ' )]
108
- public function resolveFullyQualifiedOnPosix () {
109
- $ fq = '/bin/ls ' ;
110
- $ this ->assertEquals ($ fq , Process::resolve ($ fq ));
111
- }
112
-
113
107
#[Test, Action(eval: 'new IsPlatform("ANDROID") ' )]
114
108
public function resolveFullyQualifiedOnAndroid () {
115
109
$ fq = getenv ('ANDROID_ROOT ' ).'/framework/core.jar ' ;
116
110
$ this ->assertEquals ($ fq , Process::resolve ($ fq ));
117
111
}
118
112
113
+ #[Test, Action(eval: 'new IsPlatform("!(WIN|ANDROID)") ' )]
114
+ public function resolveFullyQualifiedOnPosix () {
115
+ $ this ->assertTrue (in_array (Process::resolve ('/bin/ls ' ), ['/usr/bin/ls ' , '/bin/ls ' ]));
116
+ }
117
+
119
118
#[Test, Action(eval: 'new IsPlatform("!(WIN|ANDROID)") ' )]
120
119
public function resolve () {
121
- $ this ->assertEquals ( ' / bin/ls ' , Process:: resolve ( ' ls ' ));
120
+ $ this ->assertTrue ( in_array (Process:: resolve ( ' ls ' ), [ ' /usr/ bin/ls ' , ' /bin/ ls '] ));
122
121
}
123
122
}
You can’t perform that action at this time.
0 commit comments