<?php
class Webenq_Test_Model_Question_Closed_Scale_FourTest extends Webenq_Test_Model_Question_Closed_ScaleTest
{
    /**
     * @dataProvider provideValidData
     */
    public function testFactoryWithValidDataReturnsType($data)
    {
        $question = Webenq_Model_Question::factory($data, 'nl');
    	$this->assertTrue($question instanceof Webenq_Model_Question_Closed_Scale_Four);
    }

    /**
     * @dataProvider provideInvalidData
     */
    public function testFactoryWithInvalidDataDoesNotReturnType($data)
    {
        $question = Webenq_Model_Question::factory($data, 'nl');
    	$this->assertFalse($question instanceof Webenq_Model_Question_Closed_Scale_Four);
    }
}
<?php
class Webenq_Test_Model_Question_Closed_Scale_FourTest extends Webenq_Test_Model_Question_Closed_ScaleTest
{
    /**
     * @dataProvider provideValidData
     */
    public function testQuestionTypeValidatesWithValidAnswerValues($data)
    {
        $question = Webenq_Model_Question::factory($data, 'nl');
        $this->assertTrue(in_array('Webenq_Model_Question_Closed_Scale_Four',
            $question->getValidTypes()));
    }

    /**
     * @dataProvider provideInvalidData
     */
    public function testQuestionTypeDoesNotValidateWithInvalidAnswerValues($data)
    {
        $question = Webenq_Model_Question::factory($data, 'nl');
    	$this->assertFalse(in_array('Webenq_Model_Question_Closed_Scale_Four',
            $question->getValidTypes()));
    }
}
Change test because Question::isType() does not have to return the expected question type as first choice, but it has to be in the array of valid question types
Change test because Question::isType() does not have to return
the expected question type as first choice, but it has to be in
the array of valid question types
