assertTrue($sem->acquire()); $this->assertTrue($sem->acquire()); $this->assertFalse($sem->acquire()); $this->assertTrue($sem->release()); $this->assertTrue($sem->acquire()); $this->assertFalse($sem->acquire()); $this->assertTrue($sem->release()); $this->assertTrue($sem->release()); } }