<?php

namespace Issues;

class Issue800Test extends \Yoast\PHPUnitPolyfills\TestCases\TestCase
{

	public function testNoNoticeWithNestedTablesAndBorders()
	{
		$mpdf = new \Mpdf\Mpdf();
		$mpdf->WriteHTML('
		<style>
			table {
				border-collapse: collapse;
			}
		</style>

		<table>
			<tr>
				<td>
					<table border="1">
						<tr>
							<td>
								Test
							</td>
						</tr>
					</table>
				</td>
			</tr>

			<tr>
				<td>
					<table border="1">
						<tr>
							<td>
								Test
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>');

		$output = $mpdf->OutputBinaryData();
		$this->assertStringStartsWith('%PDF-', $output);
	}

}
