for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (C) 2017 Gerrit Addiks.
* This package (including this file) was released under the terms of the GPL-3.0.
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <http://www.gnu.org/licenses/> or send me a mail so i can send you a copy.
* @license GPL-3.0
* @author Gerrit Addiks <[email protected]>
*/
namespace Addiks\RDMBundle\Tests\Mapping;
use PHPUnit\Framework\TestCase;
use Addiks\RDMBundle\Mapping\CallDefinition;
use Addiks\RDMBundle\Mapping\MappingInterface;
final class CallDefinitionTest extends TestCase
{
* @var CallDefinition
private $callDefinition;
public function setUp()
$this->callDefinition = new CallDefinition(
"someRoutineName",
"someObjectReference",
[
$this->createMock(MappingInterface::class),
]
);
}
* @test
public function shouldStoreObjectReference()
$this->assertEquals("someObjectReference", $this->callDefinition->getObjectReference());
public function shouldStoreRoutineName()
$this->assertEquals("someRoutineName", $this->callDefinition->getRoutineName());
public function shouldStoreArgumentMapping()
$this->assertEquals([
], $this->callDefinition->getArgumentMappings());