public static function isCollection(Property $property) { if ($property->getType() instanceof Array_) { return true; } }
/** * @covers ::__construct * @covers ::getType */ public function testHasType() { $expected = new String_(); $fixture = new Property('myProperty', $expected); $this->assertSame($expected, $fixture->getType()); }