for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Happyr Doctrine Specification package.
*
* (c) Tobias Nyholm <[email protected]>
* Kacper Gunia <[email protected]>
* Peter Gribanov <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace tests\Happyr\DoctrineSpecification\Query\Selection;
use Happyr\DoctrineSpecification\Operand\Field;
use Happyr\DoctrineSpecification\Query\Selection\ArgumentToSelectionConverter;
use PhpSpec\ObjectBehavior;
* @mixin ArgumentToSelectionConverter
class ArgumentToSelectionConverterSpec extends ObjectBehavior
{
public function it_is_a_converter()
$this->shouldBeAnInstanceOf(ArgumentToSelectionConverter::class);
}
public function it_not_convert_field_to_selection(Field $field)
$this->toSelection($field)->shouldReturn($field);
public function it_convert_argument_to_field()
$this->toSelection('foo')->shouldBeAnInstanceOf(Field::class);