public function testFind_CardIsNotFound() { $card = new IdCard(); $card->setRate(0); $box = new LuckyBox(); $box->add($card); $rm = new \ReflectionMethod($box, 'find'); $rm->setAccessible(true); $this->assertNull($rm->invoke($box, 0)); }