Izveidot aplikāciju, kura ik pēc noteikta intervāla (60 sekundes) veic ierakstu datubāzē izmantojot Laravel freimworka iebūvēto funkcionalitāti.
<?php
namespace Faker\Test\Provider\ja_JP;
use Faker\Generator;
use Faker\Provider\ja_JP\Person;
use PHPUnit\Framework\TestCase;
class PersonTest extends TestCase
{
public function testKanaNameMaleReturns()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
$faker->seed(1);
$this->assertEquals('アオタ ミノル', $faker->kanaName('male'));
}
public function testKanaNameFemaleReturns()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
$faker->seed(1);
$this->assertEquals('アオタ ミキ', $faker->kanaName('female'));
}
public function testFirstKanaNameMaleReturns()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
$faker->seed(1);
$this->assertEquals('ヒデキ', $faker->firstKanaName('male'));
}
public function testFirstKanaNameFemaleReturns()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
$faker->seed(1);
$this->assertEquals('マアヤ', $faker->firstKanaName('female'));
}
public function testLastKanaNameReturnsNakajima()
{
$faker = new Generator();
$faker->addProvider(new Person($faker));
$faker->seed(1);
$this->assertEquals('ナカジマ', $faker->lastKanaName);
}
}