You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}, Nette\InvalidArgumentException::class, "Service '': Interface Bad1 must have just one non-static method create() or get().");
87
+
}, Nette\InvalidArgumentException::class, "Service '': Interface Bad1 must have at least one method.");
81
88
82
89
83
90
Assert::exception(function () {
84
91
$def = newLocatorDefinition;
85
92
$def->setImplement('Bad2');
86
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad2::create() must have one parameter.");
93
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad2::create() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
87
94
88
95
89
96
Assert::exception(function () {
90
97
$def = newLocatorDefinition;
91
98
$def->setImplement('Bad3');
92
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad3::get() must have one parameter.");
99
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad3::get() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
93
100
94
101
95
102
Assert::exception(function () {
96
103
$def = newLocatorDefinition;
97
104
$def->setImplement('Bad4');
98
-
}, Nette\InvalidArgumentException::class, "Service '': Interface Bad4 must have just one non-static method create() or get().");
105
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad4::foo() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
99
106
100
107
101
108
Assert::exception(function () {
102
109
$def = newLocatorDefinition;
103
110
$def->setImplement('Bad5');
104
-
}, Nette\InvalidArgumentException::class, "Service '': Interface Bad5 must have just one non-static method create() or get().");
111
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad5::get() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
105
112
106
113
107
114
Assert::exception(function () {
108
115
$def = newLocatorDefinition;
109
116
$def->setImplement('Bad6');
110
-
}, Nette\InvalidArgumentException::class, "Service '': Method Bad6::get() must have one parameter.");
117
+
}, Nette\InvalidArgumentException::class, "Service '': Method Bad6::get() does not meet the requirements: is create(\$name), get(\$name), create*() or get*() and is non-static.");
0 commit comments