示例#1
0
 /**
  * Create a null object
  *
  * @return static
  */
 function no()
 {
     return \ConceptByte\NullObject\NullObject::create();
 }
 /** @test */
 public function it_handles_both_methods_and_properties()
 {
     $null = NullObject::create();
     $this->assertEquals([], (array) $null->xyz);
     $this->assertEquals([], (array) $null->xyz());
 }