Skip to content

Commit

Permalink
remove deprecated methods
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
niklongstone committed May 19, 2015
1 parent 0e5430d commit 6b8f8da
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
@@ -1,3 +1,7 @@
0.6.1 / 2015-05-19
==================
* Removed deprecated method fillEntity and fillTable

0.6.0 / 2015-05-19
==================
* Add fakeTemplate feature
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -59,5 +59,5 @@ print_r($fakerino->fake('fake1')->toArray());
`app/fake surname -j` //["Brooks"]
`app/fake nameMale -n 2` //Nick Andy
`app/fake country -c path/config.ini` //uses a config file
`app/fake surname -l de-DE` //Schleßinger
`app/fake -s 'Hello Mrs {{surname}} {{namefemale}}' -l de-DE` //Hello Mrs Seeliger Ceylin
`app/fake surname -l de-DE` //Schleßinger
`app/fake -s 'Hello Mrs {{namefemale}} {{surname}}' -l de-DE` //Hello Mrs Seeliger Ceylin
2 changes: 1 addition & 1 deletion src/Fakerino/Core/Console/FakeConsole.php
Expand Up @@ -94,7 +94,7 @@ public function run()
$this->num = 1;
}
if ($this->table) {
$fakerino->num($this->num)->fillTable($this->table);
$fakerino->num($this->num)->fakeTable($this->table);

return;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Fakerino/Core/FakeDataFactory.php
Expand Up @@ -50,7 +50,7 @@ class FakeDataFactory
/**
* It receives:
* the handlers priority for the fake request,
* the DbInterface for the fillTable operation,
* the DbInterface for the fakeTable operation,
* and the TemplateInterface for the fakeTemplate operation.
*
* @param HandlerInterface $fakeHandler
Expand Down Expand Up @@ -96,7 +96,7 @@ public function fake($elementName = null)
* @return bool
* @throws \Fakerino\FakeData\Exception\MissingRequiredOptionException
*/
public function fillEntity($entity = null)
public function fakeEntity($entity = null)
{
if ($entity === null) {
throw new MissingRequiredOptionException('entity to fake');
Expand All @@ -114,7 +114,7 @@ public function fillEntity($entity = null)
* @return array $rows
* @throws \Fakerino\FakeData\Exception\MissingRequiredOptionException
*/
public function fillTable($tableName = null)
public function fakeTable($tableName = null)
{
if ($tableName === null) {
throw new MissingRequiredOptionException('table name');
Expand Down
2 changes: 1 addition & 1 deletion src/Fakerino/Core/Filler/FillerInterface.php
Expand Up @@ -19,7 +19,7 @@
interface FillerInterface
{
/**
* @return array
* @return mixed
*/
public function fill();
}
6 changes: 3 additions & 3 deletions tests/Fakerino/Test/Core/FakeDataFactoryTest.php
Expand Up @@ -59,13 +59,13 @@ public function testFakeCallWithEmptyElement()
public function testFillEntiyWithEmptyElement()
{
$this->setExpectedException('Fakerino\FakeData\Exception\MissingRequiredOptionException');
$this->fakeGenerator->fillEntity();
$this->fakeGenerator->fakeEntity();
}

public function testFillTableWithEmptyElement()
{
$this->setExpectedException('Fakerino\FakeData\Exception\MissingRequiredOptionException');
$this->fakeGenerator->fillTable();
$this->fakeGenerator->fakeTable();
}

public function testFakeCallWithConfElement()
Expand Down Expand Up @@ -123,7 +123,7 @@ public function testMultipleFakesToString()
public function testEntityFiller()
{
$testEntity = new TestEntity();
$this->fakeGenerator->fillEntity($testEntity);
$this->fakeGenerator->fakeEntity($testEntity);

$this->assertNotNull($testEntity->getOne());
$this->assertNotNull($testEntity->getFour());
Expand Down

0 comments on commit 6b8f8da

Please sign in to comment.