/** * tests setter and getter for the match property * * @group data * @group sourcetest */ public function testGetter() { $match = 'TestMatchName'; $properties = ['abc' => 'def']; $object = new Platform($match, $properties, true, false); self::assertSame($match, $object->getMatch()); self::assertSame($properties, $object->getProperties()); $this->assertTrue($object->isLite()); $this->assertFalse($object->isStandard()); }
/** * tests setter and getter for data properties * * @group data * @group sourcetest */ public function testSetGetProperties() { $properties = array('abc' => 'def'); self::assertSame($this->object, $this->object->setProperties($properties)); self::assertSame($properties, $this->object->getProperties()); }