-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
добавлены тесты-каркасы двух классов
- Loading branch information
dimaxz lanetz
committed
Dec 5, 2015
1 parent
eaa3483
commit 2e86a2c
Showing
3 changed files
with
429 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"name": "dimaxz/simpleorm", | ||
"description": "что то вроде ORM", | ||
"authors": [ | ||
{ | ||
"name": "Dmitriy Lanets", | ||
"email": "dimon_lanec@mail.ru" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"SimpleORM\\": "src" | ||
} | ||
}, | ||
"require": { | ||
"league/container": "2.0.*" | ||
"name": "dimaxz/simpleorm", | ||
"description": "что то вроде ORM", | ||
"authors": [ | ||
{ | ||
"name": "Dmitriy Lanets", | ||
"email": "dimon_lanec@mail.ru" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"SimpleORM\\": "src" | ||
} | ||
}, | ||
"require": { | ||
"league/container": "2.0.*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
<?php | ||
|
||
namespace SimpleORM; | ||
|
||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2015-12-05 at 16:25:11. | ||
*/ | ||
class AbstractDataMapperTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
|
||
/** | ||
* @var AbstractDataMapper | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() | ||
{ | ||
//$this->object = new AbstractDataMapper; | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::getEntityTable | ||
* @todo Implement testGetEntityTable(). | ||
*/ | ||
public function testGetEntityTable() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::getAdapter | ||
* @todo Implement testGetAdapter(). | ||
*/ | ||
public function testGetAdapter() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::findById | ||
* @todo Implement testFindById(). | ||
*/ | ||
public function testFindById() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::save | ||
* @todo Implement testSave(). | ||
*/ | ||
public function testSave() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::findBySpecification | ||
* @todo Implement testFindBySpecification(). | ||
*/ | ||
public function testFindBySpecification() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::delete | ||
* @todo Implement testDelete(). | ||
*/ | ||
public function testDelete() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::findAllBySpecification | ||
* @todo Implement testFindAllBySpecification(). | ||
*/ | ||
public function testFindAllBySpecification() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::findAll | ||
* @todo Implement testFindAll(). | ||
*/ | ||
public function testFindAll() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::useJoins | ||
* @todo Implement testUseJoins(). | ||
*/ | ||
public function testUseJoins() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers SimpleORM\AbstractDataMapper::withDelete | ||
* @todo Implement testWithDelete(). | ||
*/ | ||
public function testWithDelete() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
} |
Oops, something went wrong.