/** * @param mixed $value to assign to boolean * @param mixed $expected text output * @dataProvider getOptionTextDataProvider */ public function testGetOptionText($value, $expected) { // calling outputValue() will cause the protected method getOptionText() to be called $boolean = new Boolean($this->localeMock, $this->loggerMock, $this->attributeMetadataMock, $this->localeResolverMock, $value, 0); $this->assertSame($expected, $boolean->outputValue()); }