Added tests for accessing unknown attributes
This commit is contained in:
parent
a29e43bad4
commit
8bd00943f4
|
@ -204,6 +204,23 @@ class CountryTest extends \PHPUnit_Framework_TestCase
|
||||||
isset($this->model->traits->unknown),
|
isset($this->model->traits->unknown),
|
||||||
'unknown trait is not set'
|
'unknown trait is not set'
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException RuntimeException
|
||||||
|
* @expectedExceptionMessage Unknown attribute
|
||||||
|
*/
|
||||||
|
public function testUnknownRecord()
|
||||||
|
{
|
||||||
|
$this->model->unknownRecord;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException RuntimeException
|
||||||
|
* @expectedExceptionMessage Unknown attribute
|
||||||
|
*/
|
||||||
|
public function testUnknownTrait()
|
||||||
|
{
|
||||||
|
$this->model->traits->unknown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user