aboutsummaryrefslogtreecommitdiff
path: root/tests/Actions/ActionImplementationTest.php
diff options
context:
space:
mode:
authorGravatar Jan Tojnar <jtojnar@gmail.com> 2022-07-08 12:54:23 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-08 12:54:23 +0200
commitdbf8c5b7ae48193033f3a3d6d907f6063a21721f (patch)
tree9c0580a324a61bb1597c9e5255d7d4795fe7a59e /tests/Actions/ActionImplementationTest.php
parent20bf2aa4fe4493474c5a31c5989304c4506570a3 (diff)
downloadrss-bridge-dbf8c5b7ae48193033f3a3d6d907f6063a21721f.tar.gz
rss-bridge-dbf8c5b7ae48193033f3a3d6d907f6063a21721f.tar.zst
rss-bridge-dbf8c5b7ae48193033f3a3d6d907f6063a21721f.zip
refactor(BridgeFactory): make methods only accept valid class names (#2897)
This moves the responsibility for getting a valid class name to the users of BridgeFactory, avoiding the repeated sanitation. Improper use can also be checked statically.
Diffstat (limited to 'tests/Actions/ActionImplementationTest.php')
-rw-r--r--tests/Actions/ActionImplementationTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Actions/ActionImplementationTest.php b/tests/Actions/ActionImplementationTest.php
index 3f063682..bf5dc4f9 100644
--- a/tests/Actions/ActionImplementationTest.php
+++ b/tests/Actions/ActionImplementationTest.php
@@ -40,7 +40,7 @@ class ActionImplementationTest extends TestCase
$this->setAction($path);
- $methods = get_class_methods($this->obj);
+ $methods = array_diff(get_class_methods($this->obj), ['__construct']);
sort($methods);
$this->assertEquals($allowedMethods, $methods);