for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of dispositif/wikibot application
* 2019 : Philippe M. <[email protected]>
* For the full copyright and MIT license information, please view the LICENSE file.
*/
declare(strict_types=1);
namespace App\Domain\Models\Wiki\Tests;
use App\Domain\Models\Wiki\OuvrageTemplate;
use PHPUnit\Framework\TestCase;
class InfoTraitTest extends TestCase
{
* @throws \Exception
public function testInfoTrait()
$ouvrage = new OuvrageTemplate();
$ouvrage->hydrate(
[
'auteur' => 'Michou',
'titre' => 'Au soleil',
]
);
$ouvrage->setInfos(['test' => 'bla']);
$this::assertSame(
['test' => 'bla'],
$ouvrage->getInfos()
$ouvrage->setInfo('toto', 'bla2');
'bla2',
$ouvrage->getInfo('toto')
}