add merge tune to extract tunes by title
update Tune::merge() and add Tune::equals()
This commit is contained in:
@@ -35,7 +35,8 @@ class ExtractTuneFromCollectionTest extends \Codeception\Test\Unit
|
||||
|
||||
$result = $extractor->extractTuneByTitle($title);
|
||||
|
||||
$this->assertCount(1, $result);
|
||||
$this->assertNotEquals($tunes, $result);
|
||||
foreach ($tunes as $tune) {
|
||||
$this->assertNotEquals($tune, $result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,7 +212,6 @@ class TuneTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$result = $targetTune->merge($sourceTune);
|
||||
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
$this->assertTrue($expected->equals($result));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user