コード例 #1
0
 /**
  * @dataProvider nonEmptyFingerprintProvider
  */
 public function testNonEmptyFingerprintIsNotEmpty(Fingerprint $nonEmptyFingerprint)
 {
     $this->assertFalse($nonEmptyFingerprint->isEmpty());
 }
コード例 #2
0
ファイル: Property.php プロジェクト: SRMSE/cron-wikidata
 /**
  * Returns if the Property has no content.
  * Having an id and type set does not count as having content.
  *
  * @since 0.1
  *
  * @return bool
  */
 public function isEmpty()
 {
     return $this->fingerprint->isEmpty() && $this->statements->isEmpty();
 }