Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 6 |
| ModelTest | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 6 |
| testCannotInstanciateModelWithoutTableName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| testCannotInstanciateModelWithoutPrimaryKeys | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| testCannotInstanciateModelWithoutFields | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @covers \Modelight\Model | |
| */ | |
| final class ModelTest extends \PHPUnit\Framework\TestCase | |
| { | |
| /** | |
| * @expectedException \Modelight\Exception | |
| */ | |
| public function testCannotInstanciateModelWithoutTableName() | |
| { | |
| new \FakeModelWithoutTableName(); | |
| } | |
| /** | |
| * @expectedException \Modelight\Exception | |
| */ | |
| public function testCannotInstanciateModelWithoutPrimaryKeys() | |
| { | |
| new \FakeModelWithoutPrimaryKeys(); | |
| } | |
| /** | |
| * @expectedException \Modelight\Exception | |
| */ | |
| public function testCannotInstanciateModelWithoutFields() | |
| { | |
| new \FakeModelWithoutFields(); | |
| } | |
| } |