public function testFakeProduct() { $fakeAdapter = new FakeProductAdapter(); $product = new Product($fakeAdapter, VatTable::asAssociativeArray()); $this->assertEquals('Test', $product->getName()); $this->assertEquals(10.0, $product->getPriceWithoutVat()); $this->assertEquals(11.2, $product->getPriceWithVat()); $this->assertEquals(2, count($product->getCategories())); }