<?php

use PHPUnit\Framework\TestCase;

/**
 * @covers DNASequence
 */
class DNASequenceTest extends TestCase
{
    /**
     * @covers DNASequence::findRestrictionSites
     */
    public function testDoesNotMutate()
    {
        $dnaSequence = 'ATTAATAGGTATCCGGGATATATAT'; // Should never be mutated when checked against ASP718I and TspMI.
        $sites = array(
            RestrictionSites::getSiteByName('ASP718I'),
            RestrictionSites::getSiteByName('TspMI')
        );
        $dna = new DNASequence($dnaSequence);
        $dna->findRestrictionSites($sites);
        $result = $dna->getResult();
        $this->assertEquals('ATTAATAGGTATCCGGGATATATAT', $result->raw);
    }

    /**
     * @covers DNAResult
     * @covers DNASequence::findRestrictionSites
     */
    public function testCorrectMutation()
    {
        $dnaSequence = 'ATATGGGCCCATGCC';
        $formattedExpected = "ATATGG<span class=\"bg-primary\">GCT</span>CATGCC";
        $dna = new DNASequence($dnaSequence);
        $sites = array(RestrictionSites::getSite("GGGCCC"));

        $dna->findRestrictionSites($sites);
        $result = $dna->getResult();
        $this->assertEquals('ATATGGGCTCATGCC', $result->raw);
        $this->assertEquals($formattedExpected, $result->formatted);
    }
}

<?php

use PHPUnit\Framework\TestCase;

/**
 * @covers DNASequence
 */
class DNASequenceTest extends TestCase
{
    /**
     * @covers DNASequence::findRestrictionSites
     */
    public function testDoesNotMutate()
    {
        $dnaSequence = 'ATTAATAGGTATCCGGGATATATAT'; // Should never be mutated when checked against ASP718I and TspMI.
        $sites = array(
            RestrictionSites::getSiteByName('ASP718I'),
            RestrictionSites::getSiteByName('TspMI')
        );
        $dna = new DNASequence($dnaSequence);
        $dna->findRestrictionSites($sites);
        $result = $dna->getResult();
        $this->assertEquals('ATTAATAGGTATCCGGGATATATAT', $result->raw);
    }
}

Remove test that could cause phpunit to fail due to the random nature of silent mutaitons.
Remove test that could cause phpunit to fail due to the random nature of silent mutaitons.
