/** * @test */ public function shouldEvaluateDefaultsEveryTime() { // given $product1 = new ProductWithDefaults(array()); //when ProductWithDefaults::$defaultDescription = 'desc'; $product2 = new ProductWithDefaults(array()); //then $this->assertEquals('no desc', $product1->description); $this->assertEquals('desc', $product2->description); }