src/Rocketeer/Services/Connections/Coordinator.php
public function allServerAre($event, $expected)
    {
        $targets = $this->computeNumberOfTargets();
        $statuses = array_filter($this->statuses[$event], function ($server) use ($expected) {
            return $server === $expected;
        });

        return $targets === count($statuses);
    }
public function allServerAre($event, $expected)
    {
        $targets = $this->computeNumberOfTargets();
        $statuses = array_filter($this->statuses[$event], function ($server) use ($expected) {
            return $server === $expected;
        });

        return $targets === count($statuses);
    }
public function allServerAre ( $ event , $ expected ) { $ targets = $ this -> computeNumberOfTargets ( ) ; $ statuses = array_filter ( $ this -> statuses [ $ event ] , function ( $ server ) use ( $ expected ) { return $ server === $ expected ; } ) ; return $ targets === count ( $ statuses ) ; }
Assert whether all servers are at a particular state.

@param string $event
@param int    $expected

@return bool
Assert whether all servers are at a particular state .