Commit 4c7bd953 by Alexander Makarov

added test for calling unknown method of Component

parent 695fd37e
......@@ -123,6 +123,12 @@ class ComponentTest extends TestCase
$this->assertTrue(isset($this->component->p2));
}
public function testCallUnknownMethod()
{
$this->setExpectedException('yii\base\UnknownMethodException');
$this->component->unknownMethod();
}
public function testUnset()
{
unset($this->component->Text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment