BrowscapTest\Data\PropertyHolderTest::testIsOutputPropertyWithWriter PHP Method

testIsOutputPropertyWithWriter() public method

tests detecting a output property if a writer is given
    public function testIsOutputPropertyWithWriter()
    {
        $mockWriter = $this->getMockBuilder(\Browscap\Writer\CsvWriter::class)->disableOriginalConstructor()->setMethods(['getType'])->getMock();
        $mockWriter->expects(self::once())->method('getType')->will(self::returnValue('csv'));
        $actualValue = $this->object->isOutputProperty('PropertyName', $mockWriter);
        self::assertTrue($actualValue);
    }