コード例 #1
0
 /**
  * @test
  */
 public function can_find_a_country_by_code()
 {
     $earth = new Earth();
     $russia = $earth->findOne(['code' => 'RU']);
     $this->assertTrue($russia instanceof Country);
     $this->assertEquals('RU', $russia->getCode());
 }
コード例 #2
0
 /**
  * @test
  */
 public function lower_case_find_also_works()
 {
     $earth = new Earth();
     $russia = $earth->findOne(['code' => 'ru']);
     $this->assertInstanceOf(Country::class, $russia);
 }