10 require_once(dirname(dirname(dirname(__DIR__))) .
'/lib/php/Test/Reflectory.php');
11 require_once(dirname(dirname(dirname(__DIR__))) .
'/lib/php/Plugin/FO_Plugin.php');
12 require_once(dirname(dirname(dirname(__DIR__))) .
'/lib/php/common-plugin.php');
26 public static function provideTexts()
29 'nomos' => [
'License by Nomos.',
true],
30 'ninka' => [
'License by Ninka.',
true],
31 'ojo' => [
'License by OJO.',
true],
32 'scancode' => [
'License by Scancode.',
true],
33 'real text' => [
'Permission is hereby granted, free of charge, to any person',
false],
44 $GLOBALS[
'container'] =
new class {
45 public function get($name)
47 return new \stdClass();
50 require_once(__DIR__ .
'/../../ui/admin-license-file.php');
51 $page = (new \ReflectionClass(
'admin_license_file'))->newInstanceWithoutConstructor();
53 $this->assertSame($expected,
54 Reflectory::invokeObjectsMethodnameWith($page,
'isAgentPlaceholderText', [$text]));
Test for admin_license_file::isAgentPlaceholderText() @runTestsInSeparateProcesses @preserveGlobalSta...
testIsAgentPlaceholderText($text, $expected)