hasExtension = m::mock(HasExtension::class); $this->fixture = $this->getMockForAbstractClass(CompositeSpecification::class); } public function tearDown() : void { m::close(); } /** * @uses \Flyfinder\Specification\AndSpecification * * @covers ::andSpecification */ public function testAndSpecification() : void { $this->assertInstanceOf( AndSpecification::class, $this->fixture->andSpecification($this->hasExtension) ); } /** * @uses \Flyfinder\Specification\OrSpecification * * @covers ::orSpecification */ public function testOrSpecification() : void { $this->assertInstanceOf( OrSpecification::class, $this->fixture->orSpecification($this->hasExtension) ); } /** * @uses \Flyfinder\Specification\NotSpecification * * @covers ::notSpecification */ public function testNotSpecification() : void { $this->assertInstanceOf( NotSpecification::class, $this->fixture->notSpecification() ); } }