/** * @dataProvider isEqualDataProvider * * @param AbstractPhone $first * @param mixed $second * @param bool $expectedResult */ public function testIsEqual(AbstractPhone $first, $second, $expectedResult) { $this->assertEquals($expectedResult, $first->isEqual($second)); }
/** * Constructor * * The real implementation of this method is auto generated. * * IMPORTANT: If the derived class has own constructor it must call parent constructor. * * @param string|null $phone */ public function __construct($phone = null) { parent::__construct($phone); }
/** * @param AbstractPhone $object * @param mixed $format * @param array $context * @return array */ public function normalize($object, $format = null, array $context = array()) { return $object->getPhone(); }
public function testPrimary() { $this->assertFalse($this->phone->isPrimary()); $this->phone->setPrimary(true); $this->assertTrue($this->phone->isPrimary()); }