when($result = new \Mock\Hoa\Stream\IStream\Lockable()) ->then ->object($result) ->isInstanceOf(SUT::class) ->isInstanceOf(LUT\IStream\Stream::class); } public function case_constants() { $this ->when($result = SUT::LOCK_SHARED) ->then ->integer($result) ->isEqualTo(LOCK_SH) ->when($result = SUT::LOCK_EXCLUSIVE) ->then ->integer($result) ->isEqualTo(LOCK_EX) ->when($result = SUT::LOCK_RELEASE) ->then ->integer($result) ->isEqualTo(LOCK_UN) ->when($result = SUT::LOCK_NO_BLOCK) ->then ->integer($result) ->isEqualTo(LOCK_NB); } }