for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Axstrad library.
*
* (c) Dan Kempster <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author Dan Kempster <[email protected]>
* @package Axstrad\Common
* @subpackage Tests
*/
namespace Axstrad\Common\Tests\Traits;
use Axstrad\Component\Test\TraitTestCase;
* Axstrad\Common\Tests\Traits\NullableNameTraitTest
* covers Axstrad\Common\Traits\NullableNameTrait::getName
* covers Axstrad\Common\Traits\NullableNameTrait::setName
* @group unittest
* @uses Axstrad\Common\Traits\NullableNameTrait
class NullableNameTraitTest extends TraitTestCase
{
protected $trait = 'Axstrad\Common\Traits\NameTrait';
* @depends Axstrad\Common\Tests\Traits\NameTraitTest::testNameTrait
public function testNullableNameTrait()
$this->fixture = $this->getMockForTrait('Axstrad\Common\Traits\NullableNameTrait');
$this->fixture->setName('Bar');
$this->fixture->setName(null);
$this->assertNull($this->fixture->getName());
}