for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WikidataQueryApi\Query;
use DataValues\LatLongValue;
use Wikibase\DataModel\Entity\PropertyId;
/**
* @covers WikidataQueryApi\Query\AroundQuery
*
* @licence GPLv2+
* @author Thomas Pellissier Tanon
*/
class AroundQueryTest extends \PHPUnit_Framework_TestCase {
public function testGetPropertyId() {
$query = new AroundQuery( new PropertyId( 'P42' ), new LatLongValue( 42, 42 ), 1 );
$this->assertEquals( new PropertyId( 'P42' ), $query->getPropertyId() );
}
public function testGetLatLongValue() {
$this->assertEquals( new LatLongValue( 42, 42 ), $query->getLatLongValue() );
public function testRadius() {
$this->assertEquals( 1, $query->getRadius() );
public function testGetType() {
$this->assertEquals( 'around', $query->getType() );