for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* LICENSE: This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*
* @copyright 2016 Copyright(c) - All rights reserved.
*/
namespace Rafrsr\LibArray2Object\Tests\Matcher;
use Rafrsr\LibArray2Object\Matcher\CallableMatcher;
class CallableMatcherTest extends PropertyMatcherTester
{
* @inheritDoc
public function buildMatcher()
return new CallableMatcher(
function (\ReflectionProperty $property, $givenName) {
return ($givenName === 'prueba' && $property->getName() === 'test');
}
);
public function getEquals()
return [
'test' => 'prueba'
];
public function getNotEquals()
'test' => 'name'